]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: Fix permission during subvol creation with mode 43224/head
authorKotresh HR <khiremat@redhat.com>
Mon, 9 Aug 2021 10:05:16 +0000 (15:35 +0530)
committerKotresh HR <khiremat@redhat.com>
Mon, 20 Sep 2021 11:39:01 +0000 (17:09 +0530)
commitf8b9ab406f6e9960b58c2c44121864f05d5c4a16
treee5823ac90eec2b96be09411429cab4d8d4c769de
parent3bb6dfef60c759eba3da031acb0f1cd05ff3875f
mgr/volumes: Fix permission during subvol creation with mode

The subvolume creation with specific mode leads to
creation of parent directories ('/volumes/_no_group') with
the same mode if it's not already created. Fixed the same.

Similarly, the subvolumegroup creation with specific mode
leads to creation of parent directory ('/volumes') with
same mode if it's not already created. Fixed the same.

Fixes: https://tracker.ceph.com/issues/51870
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 7440ef842a41eff3ac4751c487dacc5df2603095)

Conflicts:
    qa/tasks/cephfs/test_volumes.py: The commmit d1d5d6188496cfdf712bc588f5dee9df8c989a38
is not present in octopus
qa/tasks/cephfs/test_volumes.py
src/pybind/mgr/volumes/fs/fs_util.py
src/pybind/mgr/volumes/fs/operations/group.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/vol_spec.py