From c7d132778315742513b1c77ca203ff32d79f457b Mon Sep 17 00:00:00 2001 From: dparmar18 Date: Wed, 23 Nov 2022 18:10:17 +0530 Subject: [PATCH] doc/quota: accept human readable quota value documented Signed-off-by: Dhairya Parmar --- doc/cephfs/quota.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/cephfs/quota.rst b/doc/cephfs/quota.rst index 0bc56be12c607..e78173bcc3e64 100644 --- a/doc/cephfs/quota.rst +++ b/doc/cephfs/quota.rst @@ -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 -- 2.39.5