[PATCH] afs: Fix afs_listxattr() to not list afs ACL special xattrs
Gaja Sophie Peters
gaja.peters at math.uni-hamburg.de
Tue Mar 9 20:48:08 GMT 2021
Am 09.03.21 um 10:08 schrieb David Howells:
> Fix afs_listxattr() so that it doesn't list any of the AFS ACL xattrs. It
> does mean, however, that getfattr won't list them, though they can still be
> accessed with getxattr() and setxattr().
This seems by far the cleanest and most simple solution. I tested it now
and it works for me in all four (six) cases correctly with getxattr and
listxattr.
$ getfattr -n afs.acl /afs/your-file-system.com/
$ getfattr -n afs.acl /afs/openafs.org/
## both work (yes, also the one for yfs – no error 524 here)
$ getfattr -n afs.yfs.acl /afs/your-file-system.com/
$ getfattr -n afs.yfs.acl /afs/openafs.org/
## the latter simply says "No such attribute"
$ getfattr -d -m - /afs/your-file-system.com/
$ getfattr -d -m - /afs/openafs.org/
## both show as expected only cell, fid and volume
"cp --preserve=xattr" still says something about "setting attributes for
'<Filename>': Operation not supported", but that is probably to be expected
Greetings,
Gaja
P.S. I found possibly also why adding the line "afs.* skip" to the file
"/etc/xattr.conf" didn't change anything a few days ago: when looking
with strace at the above cp command, it looks for "/usr/etc/xattr.conf",
but that file doesn't exist of course. Once I copy /etc/xattr.conf to
/usr/etc/xattr.conf, cp --preseve=xattr doesn't give any error-messages
any more. Bug in cp? or in some library? anyways, it's not kafs.
--
+----------
| IT-Gruppe, Systemadministration
| Universität Hamburg, Fachbereich Mathematik
| Bundesstr. 55 (Geomatikum)
| Raum 212; Tel. 42838-5175
+----------
More information about the linux-afs
mailing list