From 5af29662b235fcacbe10114aab3a800c64cf827a Mon Sep 17 00:00:00 2001 From: Ramana Raja Date: Thu, 25 Jul 2019 18:09:52 +0530 Subject: [PATCH] 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 --- pkg/cephfs/volume.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/cephfs/volume.go b/pkg/cephfs/volume.go index bf4c22288..45f69a81c 100644 --- a/pkg/cephfs/volume.go +++ b/pkg/cephfs/volume.go @@ -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,