From 24ba4b197947c8f1e2198aead7cae00bcc8f71a7 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Fri, 18 Dec 2020 09:48:58 -0500 Subject: [PATCH] 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) --- src/librbd/image/CreateRequest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5