]> git-server-git.apps.pok.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>
Wed, 26 Aug 2020 17:41:03 +0000 (13:41 -0400)
commitfe0c0bd5ea1e7ebd7f2777848b9cac3966342dda
treeb0d2e442e1a2be49e6893aa1ef63588c97e042a4
parent20c8a62939a0f290234ffa048bcc4c36f033b440
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>
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v1.py
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v2.py