summaryrefslogtreecommitdiffstats
path: root/doc/rbd
diff options
context:
space:
mode:
authorcolemitchell <cole.mitchell@gmail.com>2022-12-09 05:50:07 +0100
committerGitHub <noreply@github.com>2022-12-09 05:50:07 +0100
commit7c1191da75ec52e102e63e26d9f0f71e3d11f9f0 (patch)
treeaa073e3afb7372b5d488735359870922e006f316 /doc/rbd
parentMerge pull request #49339 from zdover23/wip-doc-2022-12-09-rbd-rados-rbd-cmds... (diff)
parentdoc/rbd: refine "Retrieving Image Information" (diff)
downloadceph-7c1191da75ec52e102e63e26d9f0f71e3d11f9f0.tar.xz
ceph-7c1191da75ec52e102e63e26d9f0f71e3d11f9f0.zip
Merge pull request #49340 from zdover23/wip-doc-2022-12-09-rbd-rados-rbd-cmds-retrieving-image-information-semantics
doc/rbd: refine "Retrieving Image Information" Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Diffstat (limited to 'doc/rbd')
-rw-r--r--doc/rbd/rados-rbd-cmds.rst37
1 files changed, 26 insertions, 11 deletions
diff --git a/doc/rbd/rados-rbd-cmds.rst b/doc/rbd/rados-rbd-cmds.rst
index 9b5ce313baa..029c836c249 100644
--- a/doc/rbd/rados-rbd-cmds.rst
+++ b/doc/rbd/rados-rbd-cmds.rst
@@ -132,24 +132,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}
+
+For example:
+
+.. prompt:: bash $
+
+ rbd info swimmingpool/bar
- 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
=============================