mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-23 05:20:19 +00:00
cephfs: set the mode of the FS subvolumes
... and not that of the FS subvolume group `csi`. There is no reason for setting the mode of FS subvolume group `csi` (a CephFS subdirectory) as 777. It's default mode is 755. It's sufficient to set the mode of FS subvolumes within the subvolume group to `777`. Signed-off-by: Ramana Raja <rraja@redhat.com>
This commit is contained in:
parent
5932fff93e
commit
5af29662b2
@ -83,8 +83,6 @@ func createVolume(volOptions *volumeOptions, cr *util.Credentials, volID volumeI
|
|||||||
"create",
|
"create",
|
||||||
volOptions.FsName,
|
volOptions.FsName,
|
||||||
csiSubvolumeGroup,
|
csiSubvolumeGroup,
|
||||||
"--mode",
|
|
||||||
"777",
|
|
||||||
"-m", volOptions.Monitors,
|
"-m", volOptions.Monitors,
|
||||||
"-c", util.CephConfigPath,
|
"-c", util.CephConfigPath,
|
||||||
"-n", cephEntityClientPrefix+cr.ID,
|
"-n", cephEntityClientPrefix+cr.ID,
|
||||||
@ -107,6 +105,7 @@ func createVolume(volOptions *volumeOptions, cr *util.Credentials, volID volumeI
|
|||||||
"--group_name",
|
"--group_name",
|
||||||
csiSubvolumeGroup,
|
csiSubvolumeGroup,
|
||||||
"--pool_layout", volOptions.Pool,
|
"--pool_layout", volOptions.Pool,
|
||||||
|
"--mode", "777",
|
||||||
"-m", volOptions.Monitors,
|
"-m", volOptions.Monitors,
|
||||||
"-c", util.CephConfigPath,
|
"-c", util.CephConfigPath,
|
||||||
"-n", cephEntityClientPrefix+cr.ID,
|
"-n", cephEntityClientPrefix+cr.ID,
|
||||||
|
Loading…
Reference in New Issue
Block a user