]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/rbd: refine "Resizing a Block Device Image" 49352/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 06:55:42 +0000 (16:55 +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>
(cherry picked from commit 078bec94d08529c87766c12055c365fc53d356a2)

doc/rbd/rados-rbd-cmds.rst

index 449011efc92238d66bdaf897be42b3f3de55be91..1914483799f5f492e8e861a14f3774349c4a45a9 100644 (file)
@@ -147,13 +147,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