]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/strtol: add strict_iecstrtoll; strict_sistrtoll uses base 10
authorJan Fajerski <jfajerski@suse.com>
Tue, 20 Feb 2018 16:38:05 +0000 (17:38 +0100)
committerJan Fajerski <jfajerski@suse.com>
Tue, 3 Apr 2018 07:23:24 +0000 (09:23 +0200)
commitf753b74f3760abcc7b8b74173f75cc5ae664488e
tree1574d186f1a12e792c937a56dcca9a2ec10330b5
parentd3cecebacdcebcf475808a6204de22dfa94d729d
common/strtol: add strict_iecstrtoll; strict_sistrtoll uses base 10

This adds parsing of iec units (IEC units Ki, Mi, ...) besides the parsing
of the usual unit multipliers (SI units K, M, ...). Both unit prefixes are
parsed with base 2. While SI units should be parsed with base 10, this
would likely confuse users.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
src/common/strtol.cc
src/common/strtol.h
src/kv/RocksDBStore.cc
src/mon/OSDMonitor.cc
src/rgw/rgw_admin.cc
src/test/objectstore_bench.cc
src/test/strtol.cc
src/tools/rados/rados.cc
src/tools/rbd/ArgumentTypes.cc
src/tools/rbd/action/Bench.cc