]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: Use snapshot root directory attrs when creating clone root 35756/head
authorShyamsundar Ranganathan <srangana@redhat.com>
Tue, 23 Jun 2020 23:57:52 +0000 (19:57 -0400)
committerShyamsundar Ranganathan <srangana@redhat.com>
Tue, 11 Aug 2020 00:15:45 +0000 (20:15 -0400)
commit0eaf9b0bd2786762160b83edc52d979f5aad233c
tree03749dbaaca5cbaff9af71bcb8698314e7c159ce
parentc625a516350de993f99efc8c54cdc185e303d86b
mgr/volumes: Use snapshot root directory attrs when creating clone root

If a subvolumes mode or uid/gid values are changed post a snapshot,
and a clone of a snapshot prior to the change is initiated, the clone
inherits the current source subvolumes attributes, rather than the
snapshots attributes.

Fixing this by using the snapshots subvolume root attributes to create
the clone subvolumes root.

Following attributes are picked from the source subvolume snapshot:
- uid, gid, mode, data pool, pool namespace, quota

Fixes: https://tracker.ceph.com/issues/46163
Signed-off-by: Shyamsundar Ranganathan <srangana@redhat.com>
qa/tasks/cephfs/test_volumes.py
src/pybind/mgr/volumes/fs/operations/versions/subvolume_base.py
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v1.py
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v2.py
src/pybind/mgr/volumes/fs/volume.py