From 4e518ed3ded428f607e0d5b063a6186ebfa1e30c Mon Sep 17 00:00:00 2001 From: Stratos Psomadakis Date: Mon, 7 Nov 2011 11:24:35 +0200 Subject: [PATCH] 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 --- man/rbd.8 | 3 +++ src/bash_completion/rbd | 2 +- src/rbd.cc | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/man/rbd.8 b/man/rbd.8 index f2eea7009ce7b..16da65aea1f23 100644 --- 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 diff --git a/src/bash_completion/rbd b/src/bash_completion/rbd index 5b6ec0eff91f3..549dc11955328 100644 --- a/src/bash_completion/rbd +++ b/src/bash_completion/rbd @@ -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 diff --git a/src/rbd.cc b/src/rbd.cc index 97573894ca14d..3945af6889d7a 100644 --- a/src/rbd.cc +++ b/src/rbd.cc @@ -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 source pool name\n" -- 2.39.5