]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: Fix clone uid/gid mismatch 44800/head
authorKotresh HR <khiremat@redhat.com>
Thu, 10 Feb 2022 05:34:41 +0000 (11:04 +0530)
committerKotresh HR <khiremat@redhat.com>
Mon, 28 Feb 2022 11:56:14 +0000 (17:26 +0530)
commitd9213e0b11e5ec059febda07d392f619c7dfe43c
treebdb415f430367174e68c9f0eb44cfb20bb471922
parent88ca195c61f5fd1ee7a55b7f6ac97d88ea710e7d
mgr/volumes: Fix clone uid/gid mismatch

This is the regression caused by commit 18b85c53a.
The 'set_attrs' function sets the uid/gid of the
group to the subvolume if uid/gid is not passed.
The attrs of the clone should match the source
snapshot. Hence, don't use the 'set_attrs'
function to set only the quota attrs for the
clone.

Fixes: https://tracker.ceph.com/issues/54066
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit b3c9e6b50cf4264538e4c41d19e7ebb8b2900c3a)
src/pybind/mgr/volumes/fs/async_cloner.py