From: Dongsheng Yang Date: Thu, 2 Jun 2016 07:48:36 +0000 (-0400) Subject: tools/rbd: skip the check of options in Clone action. X-Git-Tag: ses5-milestone5~281^2~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=15459aef5bc4ab1f549d9e5f0d877eaf9a5b19d3;p=ceph.git tools/rbd: skip the check of options in Clone action. Signed-off-by: Dongsheng Yang --- diff --git a/src/tools/rbd/action/Clone.cc b/src/tools/rbd/action/Clone.cc index f399d58dd83a..f9b24b65aace 100644 --- a/src/tools/rbd/action/Clone.cc +++ b/src/tools/rbd/action/Clone.cc @@ -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); }