]> git-server-git.apps.pok.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)
committerSage Weil <sage@redhat.com>
Sun, 27 May 2018 14:57:09 +0000 (09:57 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit bb357062853cc225fd7489eba9a70aa7ec7226e3)

src/librbd/image/CloneRequest.cc

index fa4b62e4714fd055aa660eee3bc144a7387f19e9..0fb78ec8e570ae54567157a701389de8ed96ddb8 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;