From: Mykola Golub Date: Wed, 21 Feb 2018 08:46:21 +0000 (+0200) Subject: test/librbd: fix required features for ViaLockOwner tests X-Git-Tag: v12.2.5~122^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F20628%2Fhead;p=ceph.git test/librbd: fix required features for ViaLockOwner tests The rename operation is RPCed only when journaling is enabled. The snap_remove operation is RPCed only when either fast-diff or journaling is enabled. The rename, snap_create, and snap_remove do not require layering. Signed-off-by: Mykola Golub (cherry picked from commit 56e762b13aae302e6ab3cddb43f277d13ba6f43c) --- diff --git a/src/test/librbd/test_librbd.cc b/src/test/librbd/test_librbd.cc index 2f5d761a2ea6..4781dac99ead 100644 --- a/src/test/librbd/test_librbd.cc +++ b/src/test/librbd/test_librbd.cc @@ -4146,7 +4146,7 @@ TEST_F(TestLibRBD, RebuildObjectMapViaLockOwner) TEST_F(TestLibRBD, RenameViaLockOwner) { - REQUIRE_FEATURE(RBD_FEATURE_LAYERING | RBD_FEATURE_EXCLUSIVE_LOCK); + REQUIRE_FEATURE(RBD_FEATURE_JOURNALING); librados::IoCtx ioctx; ASSERT_EQ(0, _rados.ioctx_create(m_pool_name.c_str(), ioctx)); @@ -4178,7 +4178,7 @@ TEST_F(TestLibRBD, RenameViaLockOwner) TEST_F(TestLibRBD, SnapCreateViaLockOwner) { - REQUIRE_FEATURE(RBD_FEATURE_LAYERING | RBD_FEATURE_EXCLUSIVE_LOCK); + REQUIRE_FEATURE(RBD_FEATURE_EXCLUSIVE_LOCK); librados::IoCtx ioctx; ASSERT_EQ(0, _rados.ioctx_create(m_pool_name.c_str(), ioctx)); @@ -4222,7 +4222,7 @@ TEST_F(TestLibRBD, SnapCreateViaLockOwner) TEST_F(TestLibRBD, SnapRemoveViaLockOwner) { - REQUIRE_FEATURE(RBD_FEATURE_LAYERING | RBD_FEATURE_EXCLUSIVE_LOCK); + REQUIRE_FEATURE(RBD_FEATURE_FAST_DIFF); librados::IoCtx ioctx; ASSERT_EQ(0, _rados.ioctx_create(m_pool_name.c_str(), ioctx));