]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/rbd: refine "Resizing a Block Device Image" 49341/head
authorZac Dover <zac.dover@gmail.com>
Fri, 9 Dec 2022 01:02:31 +0000 (11:02 +1000)
committerZac Dover <zac.dover@gmail.com>
Fri, 9 Dec 2022 05:19:54 +0000 (15:19 +1000)
Refine and add unselectable prompts to "Resizing a Block Device Image"
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 acec934194390277df2ecdb2eef96bc9d230b17b..a1cc71c26820bd3b08d266c2b76204de0be22d27 100644 (file)
@@ -176,13 +176,24 @@ Resizing a Block Device Image
 =============================
 
 :term:`Ceph Block Device` images are thin provisioned. They don't actually use
-any physical storage  until you begin saving data to them. However, they do have
-a maximum capacity  that you set with the ``--size`` option. If you want to
-increase (or decrease) the maximum size of a Ceph Block Device image, execute
-the following:: 
+any physical storage until you begin saving data to them. However, they do have
+a maximum capacity that you set with the ``--size`` option. If you want to
+increase (or decrease) the maximum size of a Ceph Block Device image, run one
+of the following commands:
 
-       rbd resize --size 2048 foo (to increase)
-       rbd resize --size 2048 foo --allow-shrink (to decrease)
+Increasing the Size of a Block Device Image
+-------------------------------------------
+
+.. prompt:: bash $
+
+   rbd resize --size 2048 foo
+
+Decreasing the Size of a Block Device Image
+-------------------------------------------
+
+.. prompt:: bash $
+
+   rbd resize --size 2048 foo --allow-shrink
 
 
 Removing a Block Device Image