]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: keep rbd_default_features setting as bitmask 12486/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 14 Dec 2016 18:13:15 +0000 (13:13 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 16 Dec 2016 14:26:28 +0000 (09:26 -0500)
commit8ddfb453263283d38cc082a165a708d4233b8ffc
tree042175f8a499707ba64d50068d04fa08664def8b
parentbe1a4a2aee040e1ac5b21288f9e91bdea03aec66
librbd: keep rbd_default_features setting as bitmask

Support both human readable, comma delimited list of feature
names and also integer bitmask value. Attempting to read the
setting will always result in the feature bitmask integer
value.

This is required to avoid breaking backwards compatibility with
librbd clients that are dependent on the older behavior (e.g.
OpenStack).

Fixes: http://tracker.ceph.com/issues/18247
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
15 files changed:
src/CMakeLists.txt
src/common/config.cc
src/common/config.h
src/common/config_opts.h
src/common/config_validators.cc [new file with mode: 0644]
src/common/config_validators.h [new file with mode: 0644]
src/librbd/Utils.cc
src/librbd/Utils.h
src/librbd/image/CreateRequest.cc
src/test/librbd/test_librbd.cc
src/test/rbd_mirror/test_ImageReplayer.cc
src/test/rbd_mirror/test_PoolWatcher.cc
src/tools/rbd/ArgumentTypes.cc
src/tools/rbd/Utils.cc
src/tools/rbd/Utils.h