Skip to content

Commit

Permalink
adding comment
Browse files Browse the repository at this point in the history
Signed-off-by: Pawan <pawan@mayadata.io>
  • Loading branch information
pawanpraka1 committed Dec 22, 2020
1 parent cb63806 commit 1c8cebd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/zfs/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ 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.
// if the directory already exist(old k8s), the creator should set the proper permission.
if err := os.MkdirAll(mount.MountPath, 0755); err != nil {
return status.Errorf(codes.Internal, "Could not create dir {%q}, err: %v", mount.MountPath, err)
}
Expand Down

0 comments on commit 1c8cebd

Please sign in to comment.