Repository navigation
client: Fix return in removexattr for xattrs from system. namespace - #55087
Conversation
To match the kernel ceph client, as mentioned by the inline comments, remove the comparison with "system." xattr namespace in removexattr() code path. This is in preparation to handle the case where POSIX ACL xattrs are treated differently by kernel during removexattr operation. ref: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/fs/ceph/xattr.c#n21 Signed-off-by: Anoop C S <[email protected]>
de5fcbd to
2bdaebb
Compare
With an exception to POSIX ACL xattrs all others from "system." namespace are found to return ENOTSUP during a removal attempt. Hence "system.posix_acl_access" and "system.posix_acl_default" are exempted thereby returning success despite their presence on files. Signed-off-by: Anoop C S <[email protected]>
2bdaebb to
a17dcce
Compare
@vshankar This change is fine. POSIX ACL attributes: For POSIX ACL cases the xfs and ext4 will just switch the So this PR will just fix the POSIX ACL case and I will raise a separate PR to fix the latter one. |
ACK. |
|
@vshankar Should I make any changes in case backport is needed here? |
Not really. I'll put this to test soon. |
|
fs suite has many failures - https://pulpito.ceph.com/vshankar-2024-02-06_08:10:23-fs-wip-vshankar-testing-20240206.051942-testing-default-smithi/ I would need to analyse them to ascertain if the failures are related to this change or not. |
Following changes are expected for removexattr() from libcephfs:
|
This run is a bit messy - I'm going to rerun the failed test and see what comes back. |
Any luck with the rerun of failed tests? |
Not really - but I don't think this test is responsible for the failure, so, I'll merger this by EOD. |
|
Unfortunately the latest fs suite run is still messy. See: https://pulpito.ceph.com/vshankar-2024-02-16_10:35:24-fs-wip-vshankar-testing-20240216.060239-testing-default-smithi/7562055/
I've looped in @adk3798 in ceph-devel on slack related to this. |
|
This run still has quay fetch failures
I'll file a tracker for that and merge this batch. |
|
Apologies for the delay @anoopcs9 - this will be merged tomorrow. |
|
Doh, I thought this was linked to a tracker, but its not :/ @anoopcs9 - mind creating one please? |
Actually it was my intention via the question from #55087 (comment) which might not have been clear then.
Sure, I'll update here with the tracker link once my account is approved. |
Here you go: https://tracker.ceph.com/issues/64542 |
removexattr() code path generally returns success for POSIX ACL xattrs even if they are absent on files. It is this special behaviour for
system.posix_acl_accessandsystem.posix_acl_defaultxattrs that we observe duringsetfattr -xexecution or fremovexattr() call on a kernel ceph client mount. On the other side userspace client diverge a little bit around this area to produce different return code breaking consumers like Samba where anything other than 0 is treated as failure. In this change we catchENODATAfor those xattrs and fix the return code to match kernel client behaviour for others fromsystem.namespace.Checklist