mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +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",
|
||||
volOptions.FsName,
|
||||
csiSubvolumeGroup,
|
||||
"--mode",
|
||||
"777",
|
||||
"-m", volOptions.Monitors,
|
||||
"-c", util.CephConfigPath,
|
||||
"-n", cephEntityClientPrefix+cr.ID,
|
||||
@ -107,6 +105,7 @@ func createVolume(volOptions *volumeOptions, cr *util.Credentials, volID volumeI
|
||||
"--group_name",
|
||||
csiSubvolumeGroup,
|
||||
"--pool_layout", volOptions.Pool,
|
||||
"--mode", "777",
|
||||
"-m", volOptions.Monitors,
|
||||
"-c", util.CephConfigPath,
|
||||
"-n", cephEntityClientPrefix+cr.ID,
|
||||
|
Loading…
Reference in New Issue
Block a user