]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: Document the rbd showmapped cmd
authorStratos Psomadakis <psomas@grnet.gr>
Mon, 7 Nov 2011 09:24:35 +0000 (11:24 +0200)
committerJosh Durgin <josh.durgin@dreamhost.com>
Mon, 7 Nov 2011 17:27:15 +0000 (09:27 -0800)
Document the rbd showmapped cmd in rbd.usage(), and rbd's man page,
and add it to the bash completion script.

Signed-off-by: Stratos Psomadakis <psomas@grnet.gr>
man/rbd.8
src/bash_completion/rbd
src/rbd.cc

index f2eea7009ce7b63ce1ec0bca82ece8dde9973965..16da65aea1f23f6f23bf99a2aa365a45e4b5b7b6 100644 (file)
--- a/man/rbd.8
+++ b/man/rbd.8
@@ -135,6 +135,9 @@ Maps the specified image to a block device via the rbd kernel module.
 .TP
 .B \fBunmap\fP [\fIdevice\-path\fP]
 Unmaps the block device that was mapped via the rbd kernel module.
+.TP
+.B \fBshowmapped\fP
+Show the rbd images that are mapped via the rbd kernel module.
 .UNINDENT
 .SH IMAGE NAME
 .sp
index 5b6ec0eff91f3fff7674d66568a7395a1d319c8b..549dc1195532895427bed873603a18824c5995be 100644 (file)
@@ -36,7 +36,7 @@ _rbd()
                 return 0
                 ;;
             *)
-                COMPREPLY=( $(compgen -W "ls list info create resize rm export import cp copy mv rename snap watch map unmap" -- ${cur}) )
+                COMPREPLY=( $(compgen -W "ls list info create resize rm export import cp copy mv rename snap watch map unmap showmapped" -- ${cur}) )
                 return 0
             ;;
         esac
index 97573894ca14df4d75dc8be9eabaa77d296bca46..3945af6889d7a04f5431c2888e74c77826ebb022 100644 (file)
@@ -83,6 +83,8 @@ void usage()
        << "                                            using the kernel\n"
        << "  unmap [device]                            unmap a rbd device that was\n"
        << "                                            mapped by the kernel\n"
+       << "  showmapped                                show the rbd images mapped\n"
+       << "                                            by the kernel\n"
        << "\n"
        << "Other input options:\n"
        << "  -p, --pool <pool>            source pool name\n"