From a5a172a63317f6efc808f20f007cca1f8f3af18b Mon Sep 17 00:00:00 2001 From: lixiaoy1 Date: Thu, 22 Oct 2020 04:22:42 -0400 Subject: [PATCH] rbd/image: remove implicit features when cloning Signed-off-by: Li, Xiaoyan --- src/librbd/image/CloneRequest.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/librbd/image/CloneRequest.cc b/src/librbd/image/CloneRequest.cc index 1b11b3a5fae03..b022ea75a72f5 100644 --- a/src/librbd/image/CloneRequest.cc +++ b/src/librbd/image/CloneRequest.cc @@ -214,8 +214,9 @@ void CloneRequest::validate_parent() { return; } if (m_use_p_features) { - m_features = (p_features & ~RBD_FEATURES_IMPLICIT_ENABLE); + m_features = p_features; } + m_features &= ~RBD_FEATURES_IMPLICIT_ENABLE; if (r < 0) { lderr(m_cct) << "unable to locate parent's snapshot" << dendl; -- 2.47.3