]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: allow unmapping by spec
authorIlya Dryomov <idryomov@gmail.com>
Sat, 11 Apr 2015 10:07:59 +0000 (13:07 +0300)
committerIlya Dryomov <idryomov@gmail.com>
Sun, 19 Apr 2015 11:45:37 +0000 (14:45 +0300)
commitb1d3f918fb96c50d3ed07bf1b3c6043d7541820f
treec1fa42fb75bb06d39c4b982274944b1615597167
parent087ed0634031e86ef78f575be305c5742d07104f
rbd: allow unmapping by spec

Make use of krbd_unmap_by_spec() and allow unmapping by <image-name>
(i.e. pool/image@snap spec) with a bunch of careful adjustments to the
fragile command args/options parsing process to make --pool, --image
and --snap options work as expected for rbd unmap <image-name> case.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
doc/man/8/rbd.rst
src/rbd.cc
src/test/cli/rbd/help.t
src/test/cli/rbd/not-enough-args.t