]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-mirror: mask off implicitly enabled feature bits for new images
authorJason Dillaman <dillaman@redhat.com>
Thu, 17 May 2018 17:46:18 +0000 (13:46 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 18 May 2018 13:45:32 +0000 (09:45 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/tools/rbd_mirror/image_replayer/CreateImageRequest.cc

index 61c8a3ee43373605324a9f7d0a12203c614b693d..adc3ff4335606701c123bb2626ffd94ae1fc1bb8 100644 (file)
@@ -435,7 +435,9 @@ int CreateImageRequest<I>::validate_parent() {
 template <typename I>
 void CreateImageRequest<I>::populate_image_options(
     librbd::ImageOptions* image_options) {
-  image_options->set(RBD_IMAGE_OPTION_FEATURES, m_remote_image_ctx->features);
+  image_options->set(RBD_IMAGE_OPTION_FEATURES,
+                     (m_remote_image_ctx->features &
+                        ~RBD_FEATURES_IMPLICIT_ENABLE));
   image_options->set(RBD_IMAGE_OPTION_ORDER, m_remote_image_ctx->order);
   image_options->set(RBD_IMAGE_OPTION_STRIPE_UNIT,
                      m_remote_image_ctx->stripe_unit);