mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
doc/rbd: refine "Retrieving Image Information"
Refine the text and prompts in "Retrieving Image Information" in doc/rbd/rados-rbd-cmds.rst. https://tracker.ceph.com/issues/57001 Signed-off-by: Zac Dover <zac.dover@gmail.com>
This commit is contained in:
parent
dc61eb4372
commit
d418037b38
@ -118,24 +118,39 @@ For example::
|
||||
Retrieving Image Information
|
||||
============================
|
||||
|
||||
To retrieve information from a particular image, execute the following,
|
||||
but replace ``{image-name}`` with the name for the image::
|
||||
To retrieve information from a particular image, run the following command, but
|
||||
replace ``{image-name}`` with the name for the image:
|
||||
|
||||
rbd info {image-name}
|
||||
.. prompt:: bash $
|
||||
|
||||
rbd info {image-name}
|
||||
|
||||
For example::
|
||||
For example:
|
||||
|
||||
rbd info foo
|
||||
.. prompt:: bash $
|
||||
|
||||
rbd info foo
|
||||
|
||||
To retrieve information from an image within a pool, execute the following,
|
||||
but replace ``{image-name}`` with the name of the image and replace ``{pool-name}``
|
||||
with the name of the pool::
|
||||
To retrieve information from an image within a pool, run the following command,
|
||||
but replace ``{image-name}`` with the name of the image and replace
|
||||
``{pool-name}`` with the name of the pool:
|
||||
|
||||
rbd info {pool-name}/{image-name}
|
||||
.. prompt:: bash $
|
||||
|
||||
For example::
|
||||
rbd info {pool-name}/{image-name}
|
||||
|
||||
rbd info swimmingpool/bar
|
||||
For example:
|
||||
|
||||
.. prompt:: bash $
|
||||
|
||||
rbd info swimmingpool/bar
|
||||
|
||||
.. note:: Other naming conventions are possible, and might conflict with the
|
||||
naming convention described here. For example, ``userid/<uuid>`` is a
|
||||
possible name for an RBD image, and such a name might (at the least) be
|
||||
confusing. In the intrest of helping the reader of this documentation to
|
||||
form a clear idea of the way that RBD images are named, we offer this
|
||||
syntax: ``rbd -p {pool-name} | info {image-name}``.
|
||||
|
||||
Resizing a Block Device Image
|
||||
=============================
|
||||
|
Loading…
Reference in New Issue
Block a user