]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/options: parse TYPE_SIZE with iec unit prefixes (base 2)
authorJan Fajerski <jfajerski@suse.com>
Thu, 22 Mar 2018 13:15:25 +0000 (14:15 +0100)
committerJan Fajerski <jfajerski@suse.com>
Tue, 3 Apr 2018 07:23:24 +0000 (09:23 +0200)
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
src/common/options.cc

index 3f022b415b92092c7a1c684dc9a0081b07647409..6372d2b0395bd0fcb214bd6ef657fa0fb1b58d3f 100644 (file)
@@ -249,7 +249,7 @@ int Option::parse_value(
     }
     *out = uuid;
   } else if (type == Option::TYPE_SIZE) {
-    Option::size_t sz{strict_sistrtoll(val.c_str(), error_message)};
+    Option::size_t sz{strict_iecstrtoll(val.c_str(), error_message)};
     if (!error_message->empty()) {
       return -EINVAL;
     }