]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: Mark subvolume root with the vxattr ceph.dir.subvolume
authorShyamsundar Ranganathan <srangana@redhat.com>
Mon, 24 Aug 2020 13:33:10 +0000 (09:33 -0400)
committerShyamsundar Ranganathan <srangana@redhat.com>
Thu, 28 Jan 2021 15:16:47 +0000 (10:16 -0500)
commit48834afcb3856a74f51095455419eaa9f3e54d4c
treee6d7190e0d3b59ef0267c74bc73525352f6d4813
parent1db5a116eb44345378ac7d5965dd8f6b56f2ab2c
mgr/volumes: Mark subvolume root with the vxattr ceph.dir.subvolume

This enables snapshot scaling of subvolumes, and hence prevents
renaming, hardlinking etc. outside the subvolume.

Fixes: https://tracker.ceph.com/issues/47154
Signed-off-by: Shyamsundar Ranganathan <srangana@redhat.com>
(cherry picked from commit fe0c0bd5ea1e7ebd7f2777848b9cac3966342dda)
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v1.py
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v2.py