]> git-server-git.apps.pok.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>
Wed, 8 Oct 2025 01:54:05 +0000 (07:24 +0530)
commitff198f42f1a317071eb3a53352d4a7c682fd0022
tree99acd17c6952f415366e3c6becc5f752bf307aaa
parent84d292fee191ed7071162f057e7209232c6534db
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 ceph@3d5dd12
      not backported to squid yet.
qa/tasks/cephfs/test_subvolume.py
src/mds/Server.cc
src/mds/Server.h