rbd: Document the rbd showmapped cmd
PATCH 1/1 rbd: Document the rbd showmapped cmd
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 <[email protected]>
--- man/rbd.8 | 3 +++ src/bash_completion/rbd | 2 +- src/rbd.cc | 2 ++ 3 files changed, 6 insertions(+), 1 deletions(-)
man/rbd.8 +3 -0
@@ -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
src/bash_completion/rbd +1 -1
@@ -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
src/rbd.cc +2 -0
@@ -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"
Signature · 1 line
1.7.2.5
Josh Durgin
AppliedQuoted 42 lines · Stratos Psomadakis
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<[email protected]>--- man/rbd.8 | 3 +++ src/bash_completion/rbd | 2 +- src/rbd.cc | 2 ++ 3 files changed, 6 insertions(+), 1 deletions(-)man/rbd.8 +3
-0@@ -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 .spsrc/bash_completion/rbd +1
-1@@ -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 ;; esacsrc/rbd.cc +0
-0
src/rbd.cc void usage() · line 90
Quoted 8 lines
src/rbd.cc +2
-0@@ -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"
Applied, thanks!
Josh