From 45b00a9a1bbe86f74eb1c11e93390d558fe57a6e Mon Sep 17 00:00:00 2001 From: Mykola Golub Date: Sat, 21 Apr 2018 22:42:01 +0300 Subject: [PATCH] test/librbd: RBD_FEATURES parsed wrongly for old format in deep copy tests It means that previously we mostly tested deep copy from old format to new format image ignoring features. Signed-off-by: Mykola Golub --- src/test/librbd/test_DeepCopy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/librbd/test_DeepCopy.cc b/src/test/librbd/test_DeepCopy.cc index 05fdd7e1e6a0f..2585d165e3350 100644 --- a/src/test/librbd/test_DeepCopy.cc +++ b/src/test/librbd/test_DeepCopy.cc @@ -20,7 +20,7 @@ struct TestDeepCopy : public TestFixture { int order = 22; uint64_t size = (1 << order) * 20; uint64_t features = 0; - bool old_format = get_features(&features); + bool old_format = !get_features(&features); EXPECT_EQ(0, create_image_full_pp(m_rbd, m_ioctx, image_name, size, features, old_format, &order)); ASSERT_EQ(0, open_image(image_name, &m_src_ictx)); -- 2.39.5