mirror of
https://github.com/clearlinux/clr-installer.git
synced 2026-10-04 16:08:35 +00:00
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:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user