]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/rbd: skip the check of options in Clone action.
authorDongsheng Yang <dongsheng.yang@easystack.cn>
Thu, 2 Jun 2016 07:48:36 +0000 (03:48 -0400)
committerDongsheng Yang <dongsheng.yang@easystack.cn>
Tue, 21 Jun 2016 01:36:17 +0000 (21:36 -0400)
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
src/tools/rbd/action/Clone.cc

index f399d58dd83a34218f6e598d99fff6ce35dd5b10..f9b24b65aace5a47277768e97ea47851ae00d749 100644 (file)
@@ -19,14 +19,6 @@ int do_clone(librbd::RBD &rbd, librados::IoCtx &p_ioctx,
              const char *p_name, const char *p_snapname,
              librados::IoCtx &c_ioctx, const char *c_name,
              librbd::ImageOptions& opts) {
-  uint64_t features;
-  int r = opts.get(RBD_IMAGE_OPTION_FEATURES, &features);
-  assert(r == 0);
-
-  if ((features & RBD_FEATURE_LAYERING) != RBD_FEATURE_LAYERING) {
-    return -EINVAL;
-  }
-
   return rbd.clone3(p_ioctx, p_name, p_snapname, c_ioctx, c_name, opts);
 }