]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/cephfs: document resizing subvolumes using units 62342/head
authorDhairya Parmar <dparmar@redhat.com>
Mon, 17 Mar 2025 16:40:23 +0000 (22:10 +0530)
committerDhairya Parmar <dparmar@redhat.com>
Thu, 19 Feb 2026 04:46:02 +0000 (10:16 +0530)
Fixes: https://tracker.ceph.com/issues/62673
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
doc/cephfs/fs-volumes.rst

index d2c6b7273ef50bb718d580a6f073e657fce00d5a..3464940d3d1ad7ca9fd38a4998ef1c9b1f5b6ff2 100644 (file)
@@ -429,6 +429,15 @@ This command resizes the subvolume quota, using the size specified by
 ``new_size``.  The ``--no_shrink`` flag prevents the subvolume from shrinking
 below the current "used size" of the subvolume.
 
+Resizing can also be done using human-friendly units::
+
+  ceph fs subvolume resize foo subvol1 100KiB
+  ceph fs subvolume resize foo subvol1 200.45KiB
+  ceph fs subvolume resize foo subvol1 300KB
+
+.. note:: Values will be strictly cast to IEC units even when SI units
+   are input, i.e. 1{K|KB|Ki|KiB} all translate to 1024 bytes.
+
 The subvolume can be resized to an unlimited (but sparse) logical size by
 passing ``inf`` or ``infinite`` as ``<new_size>``.