From: YankunLi Date: Mon, 5 Dec 2016 06:39:20 +0000 (+0800) Subject: rbd: fix parameter check X-Git-Tag: v0.94.10~22^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=47e72024e091a55a5fcd31853e143c94d850b00a;p=ceph.git rbd: fix parameter check using import-diff command, the imagename must be specified. Signed-off-by: Yankun Li --- diff --git a/src/rbd.cc b/src/rbd.cc index e9640644e6f..3dbdcdb0d0f 100644 --- a/src/rbd.cc +++ b/src/rbd.cc @@ -2912,7 +2912,6 @@ if (!set_conf_param(v, p1, p2, p3)) { \ if (opt_cmd != OPT_LIST && opt_cmd != OPT_IMPORT && - opt_cmd != OPT_IMPORT_DIFF && opt_cmd != OPT_UNMAP && opt_cmd != OPT_SHOWMAPPED && opt_cmd != OPT_MERGE_DIFF && !imgname) {