]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: clone operation should default to image format 2 8119/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 15 Mar 2016 13:45:21 +0000 (09:45 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 15 Mar 2016 13:45:21 +0000 (09:45 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/tools/rbd/action/Clone.cc

index df24349befc038d4b5daa333fe461ec3546e26fe..0ac991b412ef2a67de44e652f592404a605f6f64 100644 (file)
@@ -64,6 +64,7 @@ int execute(const po::variables_map &vm) {
   if (r < 0) {
     return r;
   }
+  opts.set(RBD_IMAGE_OPTION_FORMAT, static_cast<uint64_t>(2));
 
   librados::Rados rados;
   librados::IoCtx io_ctx;