]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd: support plain/json/xml output formatting
authorStratos Psomadakis <psomas@grnet.gr>
Thu, 27 Dec 2012 00:14:39 +0000 (16:14 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Wed, 16 Jan 2013 21:14:48 +0000 (13:14 -0800)
commit84c5d857648384e5ae635f14af9ab63c0b3bf1ca
tree7b7fcef27ea98a3c23a620e8b7ce307df12beeec
parent3610e72e4f9117af712f34a2e12c5e9537a5746f
rbd: support plain/json/xml output formatting

This patch renames the --format option to --image-format, for
specifying the RBD image format, and uses --format to specify the
output formatting (to be consistent with the other ceph tools). To
avoid breaking backwards compatibility with existing scripts, rbd will
still accept --format [1|2] for the image format, but will print a
warning message, noting its use is deprecated.

The rbd subcommands that support the new --format option are : ls, info, snap
list, children, showmapped, lock list.

Signed-off-by: Stratos Psomadakis <psomas@grnet.gr>
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
doc/man/8/rbd.rst
src/rbd.cc