We want this feature set from the start to avoid races when a client
is opening an image being prepared for migration.
Signed-off-by: Mykola Golub <mgolub@suse.com>
omap_vals["snap_seq"] = snap_seqbl;
omap_vals["create_timestamp"] = create_timestampbl;
- if ((features & RBD_FEATURES_INTERNAL) != 0ULL) {
- CLS_ERR("Attempting to set internal feature: %" PRIu64,
- static_cast<uint64_t>(features & RBD_FEATURES_INTERNAL));
+ if ((features & RBD_FEATURE_OPERATIONS) != 0ULL) {
+ CLS_ERR("Attempting to set internal feature: operations");
return -EINVAL;
}
lderr(cct) << "librbd does not support requested features." << dendl;
return -ENOSYS;
}
- if ((features & RBD_FEATURES_INTERNAL) != 0) {
+ if ((features & RBD_FEATURE_OPERATIONS) != 0) {
lderr(cct) << "cannot use internally controlled features" << dendl;
return -EINVAL;
}