]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: Fix permission during subvol creation with mode 43223/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:07:46 +0000 (16:37 +0530)
commit8ecd3cc1b77f91cad210ac829377bb61411c5601
tree38d9af3d6474166e8570a387ab115abb1aad2c5f
parentdbc87327c37d0f305c2107e487cb98a072ae858b
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)
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