storage: Size checking in xB, not xiB

Fix the error checking to compare against human readable size

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
This commit is contained in:
Mark D Horn
2019-04-18 12:48:36 -07:00
committed by Mark Horn
parent b45bf00a04
commit a904be6d09
+1 -1
View File
@@ -877,7 +877,7 @@ func (bd *BlockDevice) IsValidSize(str string, maxPartSize uint64) string {
return "Invalid size, may only be suffixed by: B, K, M, G, T or P"
}
size, err := ParseVolumeSize(str)
size, err := ParseVolumeHumanSize(str)
if err != nil {
return "Invalid size"
} else if size < MinimumPartitionSize {