]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
librbd: by default use new format for deep copy destination
authorMykola Golub <mgolub@suse.com>
Thu, 1 Feb 2018 07:21:35 +0000 (09:21 +0200)
committerMykola Golub <mgolub@suse.com>
Thu, 1 Feb 2018 07:25:06 +0000 (09:25 +0200)
Signed-off-by: Mykola Golub <mgolub@suse.com>
src/librbd/api/Image.cc

index a4afdb2bb5ae9d1da071601394caffbc450b4f12..2a9de1ccf3f8d9fe20d2d582d4ae764787d1cfea 100644 (file)
@@ -145,7 +145,7 @@ int Image<I>::deep_copy(I *src, librados::IoCtx& dest_md_ctx,
     features = src->features;
     src_size = src->get_image_size(src->snap_id);
   }
-  uint64_t format = src->old_format ? 1 : 2;
+  uint64_t format = 2;
   if (opts.get(RBD_IMAGE_OPTION_FORMAT, &format) != 0) {
     opts.set(RBD_IMAGE_OPTION_FORMAT, format);
   }