From a904be6d093b7badb16ecaf4339045ad30db733f Mon Sep 17 00:00:00 2001 From: Mark D Horn Date: Wed, 17 Apr 2019 13:27:55 -0700 Subject: [PATCH] storage: Size checking in xB, not xiB Fix the error checking to compare against human readable size Signed-off-by: Mark D Horn --- storage/storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/storage.go b/storage/storage.go index 993b8ad..b61d529 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -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 {