From: Zac Dover Date: Thu, 9 Feb 2023 22:59:00 +0000 (+1000) Subject: doc/cephfs: add note about CephFS extended attributes and getfattr X-Git-Tag: v18.1.0~398^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=7f23dde6bec3ef75777438f5ae16347609ca0bf4;p=ceph.git doc/cephfs: add note about CephFS extended attributes and getfattr Supersedes https://github.com/ceph/ceph/pull/50060 Add a note on the fact that CephFS extended attributes are not printed by "getfattr /some/cephfs/dir/ -d -m -" even when the CephFS directory has some extended attributes set on it. https://lists.ceph.io/hyperkitty/list/ceph-users@ceph.io/thread/6ENI42ZMHTTP2OONBRD7FDP7LQBC4P2E/ Primary Author: Rishabh Dave Co-author: Anthony D'Atri Signed-off-by: Zac Dover --- diff --git a/doc/cephfs/quota.rst b/doc/cephfs/quota.rst index 777298f911cd1..a13795159e9dc 100644 --- a/doc/cephfs/quota.rst +++ b/doc/cephfs/quota.rst @@ -86,3 +86,11 @@ To remove a quota:: setfattr -n ceph.quota.max_bytes -v 0 /some/dir setfattr -n ceph.quota.max_files -v 0 /some/dir + + +.. note:: In cases where CephFS extended attributes are set on a CephFS + directory (for example, ``/some/dir``), running ``getfattr /some/dir -d -m + -`` will not print those CephFS extended attributes. This is because CephFS + kernel and FUSE clients hide this information from the ``listxattr(2)`` + system call. You can access a specific CephFS extended attribute by running + ``getfattr /some/dir -n ceph.`` instead.