Actions
Bug #51870
closedpybind/mgr/volumes: first subvolume permissions set perms on /volumes and /volumes/group
Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
% Done:
100%
Source:
Development
Tags:
backport_processed
Backport:
pacific,octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
mgr/volumes
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Because we use the "mkdirs" method for making parents to a subvolume, the perms for the subvolume specified by --mode are used for all parents too. This is wrong because you can get:
pdonnell@vossi04 ~/ceph/build$ bin/ceph fs subvolume create a d --mode=777 --size=$((2**30)) pdonnell@vossi04 ~/mnt/tmp.0cSPBAJM59$ ls -lha volumes/ total 1.5K drwxrwxrwx. 3 root root 120 Jul 27 19:17 . drwxr-xr-x. 4 pdonnell pdonnell 473M Jul 27 19:17 .. -rwxr-xr-x. 1 root root 0 Jul 27 19:17 _:d.meta drwxrwxrwx. 3 root root 120 Jul 27 19:17 _nogroup
volumes should be 0755 and _nogroup should be 0755.
Actions