Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common/options,librbd/Utils: refactor RBD feature validation #20014

Merged
merged 1 commit into from Jan 23, 2018

Conversation

liewegas
Copy link
Member

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.

Signed-off-by: Sage Weil sage@redhat.com

@dillaman
Copy link

[ RUN ] TestLibRBD.DefaultFeatures
/home/jenkins-build/build/workspace/ceph-pull-requests/src/test/librbd/test_librbd.cc:6354: Failure
Expected: 0
To be equal to: _rados.conf_set("rbd_default_features", pair.first.c_str())
Which is: -22
[ FAILED ] TestLibRBD.DefaultFeatures (0 ms)

@liewegas liewegas force-pushed the wip-rbd-validate branch 2 times, most recently from 08007ca to ade3237 Compare January 19, 2018 14:47
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>
Copy link

@dillaman dillaman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants