From: Christopher Hoffman Date: Fri, 6 Oct 2023 20:44:52 +0000 (+0000) Subject: doc/cephfs: Update docs to match remove functionality and respective vxattrs X-Git-Tag: v19.2.3~447^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8c9b075404a9443cbc7f24f338cb3ea69b12b67b;p=ceph.git doc/cephfs: Update docs to match remove functionality and respective vxattrs Signed-off-by: Christopher Hoffman (cherry picked from commit 7d3da6ecc90e29dfabe7bf79cd70923e082ad912) --- diff --git a/doc/cephfs/quota.rst b/doc/cephfs/quota.rst index e78173bcc3e6..b3d0d63b3b19 100644 --- a/doc/cephfs/quota.rst +++ b/doc/cephfs/quota.rst @@ -45,15 +45,28 @@ To view quota limit:: system call. Instead, a specific CephFS extended attribute can be viewed by running ``getfattr /some/dir -n ceph.``. -To remove a quota, set the value of extended attribute to ``0``:: +To remove or disable a quota, remove the respective extended attribute or set +the value to ``0``. + +Utilizing remove:: + + $ setfattr -x ceph.quota.max_bytes /some/dir + $ getfattr /some/dir -n ceph.quota.max_bytes + /some/dir/: ceph.quota.max_bytes: No such attribute + $ + $ setfattr -x ceph.quota.max_files /some/dir + $ getfattr /some/dir/ -n ceph.quota.max_files + /some/dir/: ceph.quota.max_files: No such attribute + +Remove by setting value to zero:: $ setfattr -n ceph.quota.max_bytes -v 0 /some/dir $ getfattr /some/dir -n ceph.quota.max_bytes - dir1/: ceph.quota.max_bytes: No such attribute + /some/dir/: ceph.quota.max_bytes: No such attribute $ $ setfattr -n ceph.quota.max_files -v 0 /some/dir - $ getfattr dir1/ -n ceph.quota.max_files - dir1/: ceph.quota.max_files: No such attribute + $ getfattr /some/dir/ -n ceph.quota.max_files + /some/dir/: ceph.quota.max_files: No such attribute Space Usage Reporting and CephFS Quotas ---------------------------------------