mirror of
https://github.com/ceph/ceph
synced 2025-02-22 10:37:15 +00:00
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 <dillaman@redhat.com>
This commit is contained in:
parent
5380615037
commit
7dd7781440
@ -40,7 +40,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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user