]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: accept --user, refuse -i 6590/head
authorIlya Dryomov <idryomov@redhat.com>
Sat, 14 Nov 2015 20:56:15 +0000 (21:56 +0100)
committerIlya Dryomov <idryomov@redhat.com>
Sat, 14 Nov 2015 21:35:19 +0000 (22:35 +0100)
commit481bb2ce1b4209297c6f4fb8985a66493fec4f38
tree4c4c2a38f99168064eb10219eefee2a20134278b
parent02acff3954cef24d801b510f1c32d73013659ae5
rbd: accept --user, refuse -i

--user is the equivalent of --id (mentioned in docs and ceph -h) and
used by at least a couple of qa scripts and teuthology.  Add it to the
list of valid rbd options - it's handled inside global_init() before
Shell:execute() is called.

OTOH allowing -i is bogus - global_init() wouldn't process it for
clients (CEPH_ENTITY_TYPE_CLIENT), which rbd tool is one of.  Drop it.

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
src/test/cli/rbd/help.t
src/tools/rbd/Shell.cc