]> 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, 27 Aug 2020 19:42:58 +0000 (15:42 -0400)
commit753c22f5a55578285e38bf13dd17071e18378ab7
treee1b15052c253e1825ccc806021cc6fd9a03f0693
parent749537ed62b9c44f26083b92641c32dde4d994e0
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