]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/config.cc: allow integer values to be parsed as SI units
authorJoao Eduardo Luis <joao.luis@inktank.com>
Fri, 23 May 2014 16:01:38 +0000 (17:01 +0100)
committerJoao Eduardo Luis <joao.luis@inktank.com>
Fri, 30 May 2014 21:09:23 +0000 (22:09 +0100)
commit5500437e064cd6b4b45d63ee9396193df87f4d44
treecab2f99441f1f4e08955f6bc4ccd743b83f5de40
parent40587d4792fd55db72d33870aae8b6a806c9baaf
common/config.cc: allow integer values to be parsed as SI units

We are allowing this for all and any integer values; that is, OPT_INT,
OPT_LONGLONG, OPT_U32 and OPT_U64.

It's on the user to use appropriate units.  For instance, the user should
not use 'E(xabyte)' when setting a signed int, and use his best judgment
when setting options that, for instance, ought to receive seconds.

Fixes: 8265
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
src/common/config.cc