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:
Ramana Raja 2019-07-25 18:09:52 +05:30 committed by mergify[bot]
parent 5932fff93e
commit 5af29662b2

View File

@ -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,