]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librbd: RBD_FEATURES parsed wrongly for old format in deep copy tests
authorMykola Golub <mgolub@suse.com>
Sat, 21 Apr 2018 19:42:01 +0000 (22:42 +0300)
committerMykola Golub <mgolub@suse.com>
Tue, 24 Apr 2018 06:54:57 +0000 (09:54 +0300)
It means that previously we mostly tested deep copy from old
format to new format image ignoring features.

Signed-off-by: Mykola Golub <mgolub@suse.com>
src/test/librbd/test_DeepCopy.cc

index 05fdd7e1e6a0feb51c59d59d5637ea71f571ab15..2585d165e3350eec31b40692130805df90aeee90 100644 (file)
@@ -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));