-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(mount): creating directory with 0755 permission #262
Conversation
Codecov Report
@@ Coverage Diff @@
## master #262 +/- ##
=========================================
- Coverage 7.70% 1.11% -6.60%
=========================================
Files 20 11 -9
Lines 1155 899 -256
=========================================
- Hits 89 10 -79
+ Misses 1065 889 -176
+ Partials 1 0 -1 Continue to review full report at Codecov.
|
Signed-off-by: Pawan <pawan@mayadata.io>
@@ -254,16 +254,10 @@ func MountDataset(vol *apis.ZFSVolume, mount *MountInfo) error { | |||
|
|||
// MountFilesystem mounts the disk to the specified path | |||
func MountFilesystem(vol *apis.ZFSVolume, mount *MountInfo) error { | |||
if err := os.MkdirAll(mount.MountPath, 0000); err != nil { | |||
if err := os.MkdirAll(mount.MountPath, 0755); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
n_: can we add a comment on why 0755 is being used as the default permissions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added the comment @kmova
Signed-off-by: Pawan <pawan@mayadata.io>
Signed-off-by: Pawan pawan@mayadata.io