]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/rbd: fsx should utilize the default image features
authorJason Dillaman <dillaman@redhat.com>
Mon, 14 May 2018 18:57:23 +0000 (14:57 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 15 May 2018 20:35:26 +0000 (16:35 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/librbd/fsx.cc

index bc6fd526adb08bb2d6a2fa02ada039645d8bb0c8..531af52c2e1bd91da9fc8b7855cfc05cb099fd1d 100644 (file)
@@ -1938,7 +1938,14 @@ create_image()
         rados_application_enable(ioctx, "rbd", 1);
 
        if (clone_calls || journal_replay) {
-                uint64_t features = 0;
+                r = rados_conf_get(cluster, "rbd_default_features", buf,
+                                   sizeof(buf));
+                if (r < 0) {
+                        simple_err("Could not get rbd_default_features value", r);
+                        goto failed_open;
+                }
+
+                uint64_t features = strtol(buf, NULL, 0);
                 if (clone_calls) {
                         features |= RBD_FEATURE_LAYERING;
                 }