All of lore.kernel.org
 help / color / mirror / Atom feed
From: Josh Durgin <josh.durgin@dreamhost.com>
To: Stratos Psomadakis <psomas@grnet.gr>
Cc: ceph-devel@vger.kernel.org
Subject: Re: [PATCH] rbd: Document the rbd showmapped cmd
Date: Mon, 07 Nov 2011 09:48:07 -0800	[thread overview]
Message-ID: <4EB819D7.80106@dreamhost.com> (raw)
In-Reply-To: <1320657875-23476-1-git-send-email-psomas@grnet.gr>

On 11/07/2011 01:24 AM, Stratos Psomadakis wrote:
> 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               |    3 +++
>   src/bash_completion/rbd |    2 +-
>   src/rbd.cc              |    2 ++
>   3 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/man/rbd.8 b/man/rbd.8
> index f2eea70..63f00ef 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 5b6ec0e..549dc11 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 9757389..3945af6 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<pool>             source pool name\n"

Applied, thanks!

Josh

      reply	other threads:[~2011-11-07 17:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-07  9:24 [PATCH] rbd: Document the rbd showmapped cmd Stratos Psomadakis
2011-11-07 17:48 ` Josh Durgin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EB819D7.80106@dreamhost.com \
    --to=josh.durgin@dreamhost.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=psomas@grnet.gr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.