mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 06:20:11 +01:00
fix(perm): changing the mount dir permissions (#325)
Signed-off-by: Sonia Singla <soniasingla.1812@gmail.com>
This commit is contained in:
parent
ce6efdc84b
commit
7e211d105a
1 changed files with 2 additions and 2 deletions
|
|
@ -256,9 +256,9 @@ func MountDataset(vol *apis.ZFSVolume, mount *MountInfo) error {
|
|||
|
||||
// MountFilesystem mounts the disk to the specified path
|
||||
func MountFilesystem(vol *apis.ZFSVolume, mount *MountInfo) error {
|
||||
// creating the directory with 0755 permission so that it can be accessed by other person.
|
||||
// creating the directory with 0750 permission so that it can be accessed by other person.
|
||||
// if the directory already exist(old k8s), the creator should set the proper permission.
|
||||
if err := os.MkdirAll(mount.MountPath, 0755); err != nil {
|
||||
if err := os.MkdirAll(mount.MountPath, 0750); err != nil {
|
||||
return status.Errorf(codes.Internal, "Could not create dir {%q}, err: %v", mount.MountPath, err)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue