]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: clones should not inherit implicit feature bits from parent
authorJason Dillaman <dillaman@redhat.com>
Thu, 24 May 2018 19:25:45 +0000 (15:25 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 24 May 2018 19:25:45 +0000 (15:25 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/image/CloneRequest.cc

index 5952a51218e66dcae2539fbff8664dd18cabaefc..66f69115e32b22a347e5a7a1c98411b6f7e437be 100644 (file)
@@ -193,7 +193,7 @@ void CloneRequest<I>::send_create() {
   ldout(m_cct, 20) << this << " " << __func__ << dendl;
 
   if (m_use_p_features) {
-    m_features = m_p_features;
+    m_features = (m_p_features & ~RBD_FEATURES_IMPLICIT_ENABLE);
   }
 
   uint64_t order = m_p_imctx->order;