]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: Implement remove for ceph vxattrs
authorChristopher Hoffman <choffman@redhat.com>
Thu, 28 Sep 2023 01:59:56 +0000 (01:59 +0000)
committerChristopher Hoffman <choffman@redhat.com>
Fri, 28 Jun 2024 17:27:17 +0000 (17:27 +0000)
commit6b2e4dfaa4ccf2c6dbd8cf7ecedd5fb48d8e87af
tree7b0b622261073773396c12876952e9278e254209
parent314e8e3c4009ffd757464ef2820ebe906d1575c3
mds: Implement remove for ceph vxattrs

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 1f0a099e4c41f62b55cfa3fd620ac06be34488da)

Conflicts:
        src/mds/Server.cc
          get_ephemeral_distributed_pin() DNE, export_ephemeral_distributed_pin used
        src/mds/Server.h
          dropped const in handle_client_setvxattr
src/mds/Server.cc
src/mds/Server.h