All of lore.kernel.org
 help / color / mirror / Atom feed
From: Li Wang <liwang@ubuntukylin.com>
To: Sage Weil <sweil@redhat.com>, Josh Durgin <josh.durgin@inktank.com>
Cc: ceph-devel@vger.kernel.org,
	Yunchuan Wen <yunchuanwen@ubuntukylin.com>,
	Li Wang <liwang@ubuntukylin.com>
Subject: [PATCH] Rbd: add listwatchers command
Date: Wed, 21 Jan 2015 22:32:53 +0800	[thread overview]
Message-ID: <cover.1421849230.git.liwang@ubuntukylin.com> (raw)

Currently, RBD does not provide an easy way to 
consult who opened a specied image, this complicates
the cloud maintenance, sometimes the administrator 
found that a RBD image could not be deleted with 
an error 'image has watchers', but no further 
information available. The RADOS has a command to 
show the watchers of an object, but the commands 
at RADOS level are not supposed to be exposed to a 
cloud administrator, and it is not clear for a 
non-expert administrator to how to associate an 
opened RBD with a corresponding watched object. 
This motivates us to add an RBD command to list the 
information of the clients who opened a RBD image to 
facilitate the cloud maintenance.

The patches are at:
https://github.com/ceph/ceph/pull/3435

Yunchuan Wen (3):
  rbd: add listwatchers command to list the watchers of an image
  test: add rbd listwatchers to src/test/cli/rbd/help.t
  man: add rbd listwatchers to doc/man/8/rbd.rst

 doc/man/8/rbd.rst       |  3 +++
 src/rbd.cc              | 63 +++++++++++++++++++++++++++++++++++++++++++++++--
 src/test/cli/rbd/help.t |  1 +
 3 files changed, 65 insertions(+), 2 deletions(-)

-- 
1.9.1


             reply	other threads:[~2015-01-21 14:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-21 14:32 Li Wang [this message]
2015-01-21 16:58 ` [PATCH] Rbd: add listwatchers command Sage Weil
2015-01-22  4:55   ` Li Wang

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=cover.1421849230.git.liwang@ubuntukylin.com \
    --to=liwang@ubuntukylin.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=josh.durgin@inktank.com \
    --cc=sweil@redhat.com \
    --cc=yunchuanwen@ubuntukylin.com \
    /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.