Skip to content

squid: mds: Implement remove for ceph vxattrs #60752

Merged
mchangir merged 5 commits intoceph:squidfrom
chrisphoffman:wip-68942-squid
Jan 3, 2025
Merged

squid: mds: Implement remove for ceph vxattrs #60752
mchangir merged 5 commits intoceph:squidfrom
chrisphoffman:wip-68942-squid

Conversation

@chrisphoffman
Copy link
Contributor

backport tracker: https://tracker.ceph.com/issues/68942


backport of #53755
parent tracker: https://tracker.ceph.com/issues/62793

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh

For a variety of ceph xattrs, the setfattr remove
isn't handled and "No such attribute" is returned.

Add support to remove xattrs to match where docs
say to clear value, one can remove or set to X value.
When removing, add "default" value back to xattr depending
on xattr name.

Simplify current code to make clearer and minimize code reuse.

Fixes: https://tracker.ceph.com/issues/62793
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
(cherry picked from commit 1f0a099)
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
(cherry picked from commit 26a352a)
Add tests to validate default and remove xattr behaviors.

Signed-off-by: Christopher Hoffman <choffman@redhat.com>
(cherry picked from commit 697c2fc)
…vxattrs

Signed-off-by: Christopher Hoffman <choffman@redhat.com>
(cherry picked from commit 7d3da6e)
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
(cherry picked from commit f5fe6a5)
@chrisphoffman chrisphoffman requested a review from a team as a code owner November 15, 2024 14:58
@chrisphoffman chrisphoffman added this to the squid milestone Nov 15, 2024
@chrisphoffman chrisphoffman added the cephfs Ceph File System label Nov 15, 2024
@vshankar
Copy link
Contributor

This PR is under test in https://tracker.ceph.com/issues/69030.

@mchangir
Copy link
Contributor

mchangir commented Jan 2, 2025

jenkins test api

@mchangir
Copy link
Contributor

mchangir commented Jan 2, 2025

jenkins test make check

2 similar comments
@mchangir
Copy link
Contributor

mchangir commented Jan 2, 2025

jenkins test make check

@mchangir
Copy link
Contributor

mchangir commented Jan 3, 2025

jenkins test make check

Copy link
Contributor

@mchangir mchangir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mchangir mchangir merged commit a13a9ab into ceph:squid Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants