]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: du command should take spec as an argument
authorIlya Dryomov <idryomov@gmail.com>
Thu, 23 Jul 2015 12:55:47 +0000 (15:55 +0300)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 27 Jul 2015 09:22:04 +0000 (12:22 +0300)
commitafbf90d5b5629edae9cac09e926fd6a783fa79ca
treeb4d47a1c2083c2ddecf74f358bd872bc276136cf
parent7d65bd9bd1b00582b635be62771d960bde701028
rbd: du command should take spec as an argument

Change du to take <image-spec> | <snap-spec> as an argument instead of
going through --image option.  The new synopsis is

    (du | disk-usage) [<image-spec> | <snap-spec>]

This is to make it look more like the rest of the commands: the only
other command that takes pool as an argument is ls and it can't really
serve as a prototype for du, because the latter has to work on images
and snapshots as well.

Examples:

    # stats for pool rbd
    $ rbd du
    $ rbd -p rbd du

    # stats for pool foo
    $ rbd -p foo du

    # stats for snapshot mysnap of image baz in pool rbd
    $ rbd du baz@mysnap

    # stats for image bar in pool foo
    $ rbd du foo/bar

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