Skip to content

Commit

Permalink
cleanup: remove filesystem size check
Browse files Browse the repository at this point in the history
  • Loading branch information
mowangdk committed Mar 29, 2024
1 parent 8c69e2a commit 377c9e9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/disk/nodeserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -1002,11 +1002,6 @@ func (ns *nodeServer) NodeExpandVolume(ctx context.Context, req *csi.NodeExpandV
log.Infof(
"NodeExpandVolume:: filesystem resize context device capacity: %v, before resize fs capacity: %v resize fs capacity: %v, requestGB: %v. file system lose percent: %v",
deviceCapacity, beforeResizeDiskCapacity, diskCapacity, requestGB, GlobalConfigVar.FilesystemLosePercent)
if diskCapacity >= requestGB*GlobalConfigVar.FilesystemLosePercent {
// delete autoSnapshot
log.Infof("NodeExpandVolume:: resizefs successful volumeId: %s, devicePath: %s, volumePath: %s", diskID, devicePath, volumePath)
return &csi.NodeExpandVolumeResponse{}, nil
}
return nil, status.Errorf(codes.Internal, "requestGB: %v, diskCapacity: %v not in range", requestGB, diskCapacity)
}

Expand Down

0 comments on commit 377c9e9

Please sign in to comment.