From 7f23dde6bec3ef75777438f5ae16347609ca0bf4 Mon Sep 17 00:00:00 2001 From: Zac Dover Date: Fri, 10 Feb 2023 08:59:00 +1000 Subject: [PATCH] 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 --- doc/cephfs/quota.rst | 8 ++++++++ 1 file changed, 8 insertions(+) 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. -- 2.39.5