You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnil, status.Error(codes.Internal, fmt.Sprintf("ControllerExpandVolume error checking format for device %s: %v", devicePath, err))
407
+
}
408
+
ifformat=="" {
409
+
// Block volume
410
+
gotSizeGb, err:=ns.getBlockSizeGb(devicePath)
411
+
iferr!=nil {
412
+
returnnil, status.Error(codes.Internal, fmt.Sprintf("ControllerExpandVolume error when getting size of block volume at path %s: %v", devicePath, err))
413
+
}
414
+
ifgotSizeGb!=common.BytesToGb(reqBytes) {
415
+
returnnil, status.Errorf(codes.Internal, "ControllerExpandVolume resize requested for %v but after resize volume was size %v", common.BytesToGb(reqBytes), gotSizeGb)
416
+
}
417
+
} else {
418
+
// Some sort of formatted volume
419
+
gotSizeGb, err:=ns.getFSSizeGb(devicePath)
420
+
421
+
iferr!=nil {
422
+
returnnil, status.Errorf(codes.Internal, "ControllerExpandVolume resize could not get fs size of %s: %v", volumePath, err)
423
+
}
424
+
ifgotSizeGb!=common.BytesToGb(reqBytes) {
425
+
returnnil, status.Errorf(codes.Internal, "ControllerExpandVolume resize requested for size %v but after resize volume was size %v", common.BytesToGb(reqBytes), gotSizeGb)
0 commit comments