]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: Fix permission during subvol creation with mode 42719/head
authorKotresh HR <khiremat@redhat.com>
Mon, 9 Aug 2021 10:05:16 +0000 (15:35 +0530)
committerKotresh HR <khiremat@redhat.com>
Tue, 7 Sep 2021 10:21:21 +0000 (15:51 +0530)
commit7440ef842a41eff3ac4751c487dacc5df2603095
tree50876e591d66c468ad87f9cdb5b5a5d3f39d6fde
parentca906d0d7a65c8a598d397b764dd262cce645fe3
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>
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