]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/options,librbd/Utils: refactor RBD feature validation 20014/head
authorSage Weil <sage@redhat.com>
Thu, 18 Jan 2018 18:47:51 +0000 (12:47 -0600)
committerSage Weil <sage@redhat.com>
Fri, 19 Jan 2018 14:48:53 +0000 (08:48 -0600)
commitfa2faeefd8b01e951f952232033ddddeaf4f5c10
treed478ba0ed91f4e9ab257cc675e468269e5d42058
parentc2d28e2750643de0226dd3bccde61b7ceb62ba29
common/options,librbd/Utils: refactor RBD feature validation

Move conversion of RBD features to/from string/uint64_t to helpers, and
use those from the option validator.

Keep the resulting features in integer form to avoid breaking Cinder.
Meh.

Change behavior from prior version:

- fail to parse if any of the specified features is invalid (previously
  we would parse the ones we understood and ignore the others).

Signed-off-by: Sage Weil <sage@redhat.com>
src/CMakeLists.txt
src/common/options.cc
src/librbd/Features.cc [new file with mode: 0644]
src/librbd/Features.h [new file with mode: 0644]
src/librbd/Utils.cc