]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/rbd: refine "Retrieving Image Information" 49340/head
authorZac Dover <zac.dover@gmail.com>
Fri, 9 Dec 2022 00:25:55 +0000 (10:25 +1000)
committerZac Dover <zac.dover@gmail.com>
Fri, 9 Dec 2022 00:45:19 +0000 (10:45 +1000)
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>
doc/rbd/rados-rbd-cmds.rst

index 70def1089625e382c5ce33766f9bdbe379d60fd4..f6fe622e28ffdabd3a86ae8b3cc0a3a970b4968b 100644 (file)
@@ -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}
+
+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
 =============================