From: Jason Dillaman Date: Fri, 18 Dec 2020 14:48:58 +0000 (-0500) Subject: librbd/image: use internal feature flag mask when creating images X-Git-Tag: v14.2.17~65^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=24ba4b197947c8f1e2198aead7cae00bcc8f71a7;p=ceph.git librbd/image: use internal feature flag mask when creating images When validating the provided features for an image, utilize the RBD_FEATURES_INTERNAL flag instead of just RBD_FEATURE_OPERATION. Signed-off-by: Jason Dillaman (cherry picked from commit 7dd77814402f0710f9283084b45960a054078897) --- diff --git a/src/librbd/image/CreateRequest.cc b/src/librbd/image/CreateRequest.cc index 686e763947496..f4b058e99c0da 100644 --- a/src/librbd/image/CreateRequest.cc +++ b/src/librbd/image/CreateRequest.cc @@ -38,7 +38,7 @@ int validate_features(CephContext *cct, uint64_t features, lderr(cct) << "librbd does not support requested features." << dendl; return -ENOSYS; } - if ((features & RBD_FEATURE_OPERATIONS) != 0) { + if ((features & RBD_FEATURES_INTERNAL) != 0) { lderr(cct) << "cannot use internally controlled features" << dendl; return -EINVAL; }