]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: fix parameter check 12312/head
authorYankunLi <lioveni99@gmail.com>
Mon, 5 Dec 2016 06:39:20 +0000 (14:39 +0800)
committerYankunLi <lioveni99@gmail.com>
Mon, 5 Dec 2016 06:39:20 +0000 (14:39 +0800)
using import-diff command, the imagename must be specified.

Signed-off-by: Yankun Li <lioveni99@gmail.com>
src/rbd.cc

index e9640644e6ffbe80e5d4e56b7122c505760300f1..3dbdcdb0d0fe83b2734f939035455ab5af710033 100644 (file)
@@ -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) {