]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/quota: accept human readable quota value documented
authordparmar18 <dparmar@redhat.com>
Wed, 23 Nov 2022 12:40:17 +0000 (18:10 +0530)
committerDhairya Parmar <dparmar@redhat.com>
Fri, 8 Sep 2023 10:44:56 +0000 (16:14 +0530)
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
(cherry picked from commit c7d132778315742513b1c77ca203ff32d79f457b)

doc/cephfs/quota.rst

index 0bc56be12c607aef486563bde00faec2e43babcc..e78173bcc3e6483295e11d25c33fc3ad62b5894c 100644 (file)
@@ -21,6 +21,14 @@ value::
   setfattr -n ceph.quota.max_bytes -v 100000000 /some/dir     # 100 MB
   setfattr -n ceph.quota.max_files -v 10000 /some/dir         # 10,000 files
 
+``ceph.quota.max_bytes`` can also be set using human-friendly units::
+
+  setfattr -n ceph.quota.max_bytes -v 100K /some/dir          # 100 KiB
+  setfattr -n ceph.quota.max_bytes -v 5Gi /some/dir           # 5 GiB
+
+.. note:: Values will be strictly cast to IEC units even when SI units
+   are input, e.g. 1K to 1024 bytes.
+
 To view quota limit::
 
   $ getfattr -n ceph.quota.max_bytes /some/dir