]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: add ceph.dir.subvolume get vxattr
authorEdwin Rodriguez <edwin.rodriguez1@ibm.com>
Mon, 18 Aug 2025 20:17:07 +0000 (16:17 -0400)
committerJos Collin <jcollin@redhat.com>
Sat, 4 Oct 2025 02:59:12 +0000 (08:29 +0530)
commitc90ffa0ec7ef455d46c790d9540c83fa4f7059c1
treec73572d78f1892bafb3ff5f0c6086e4f69e8d9de
parent2b2f4a7cd1b7f0c4ec0cf9964092d7ef6df76ca4
mds: add ceph.dir.subvolume get vxattr

This introduces handling for the "ceph.dir.subvolume" virtual xattr on directories.
- Returns ASCII "1" when the directory is a subvolume root, "0" otherwise.

QA:
- Extend CephFS subvolume tests to validate vxattr retrieval and behavior around setting/removal.

Fixes: https://tracker.ceph.com/issues/72556
Signed-off-by: Edwin Rodriguez <edwin.rodriguez1@ibm.com>
(cherry picked from commit 51fb4b6abe9daba651150055c7f768d8a6d61d48)

 Conflicts:
    qa/tasks/cephfs/test_subvolume.py
    - resolved conflicts of https://github.com/ceph/ceph/commit/3d5dd1235316775a9dbfdd225c76da09efe02e31
      not backported to tentacle yet.
qa/tasks/cephfs/test_subvolume.py
src/mds/Server.cc
src/mds/Server.h