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 <dillaman@redhat.com>
(cherry picked from commit
7dd77814402f0710f9283084b45960a054078897)
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;
}