Skip to content
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

Merged
merged 2 commits into from
Dec 23, 2020

Conversation

pawanpraka1
Copy link
Contributor

@pawanpraka1 pawanpraka1 commented Dec 17, 2020

Signed-off-by: Pawan pawan@mayadata.io

@pawanpraka1 pawanpraka1 added the bug Something isn't working. label Dec 17, 2020
@pawanpraka1 pawanpraka1 added this to the v1.2.0 milestone Dec 17, 2020
@pawanpraka1 pawanpraka1 requested a review from kmova December 17, 2020 13:45
@pawanpraka1 pawanpraka1 added the pr/hold-merge hold the merge. label Dec 17, 2020
@codecov-io
Copy link

codecov-io commented Dec 17, 2020

Codecov Report

Merging #262 (1c8cebd) into master (48e6a19) will decrease coverage by 6.59%.
The diff coverage is n/a.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
pkg/usage/ping.go 41.66% <0.00%> (ø)
pkg/common/kubernetes/client/client.go
pkg/client/k8s/v1alpha1/config.go
pkg/client/k8s/v1alpha1/dynamic.go
pkg/client/k8s/v1alpha1/configmap.go
pkg/client/k8s/v1alpha1/k8s.go
pkg/client/k8s/v1alpha1/namespace.go
pkg/client/k8s/v1alpha1/resource.go
pkg/client/k8s/v1alpha1/clientset.go
pkg/client/k8s/v1alpha1/node.go

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 48e6a19...1c8cebd. Read the comment docs.

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 {
Copy link
Member

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?

Copy link
Contributor Author

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>
@kmova kmova merged commit 2e5e61d into openebs:master Dec 23, 2020
@pawanpraka1 pawanpraka1 modified the milestones: v1.2.0, 1.3.0 Dec 29, 2020
@pawanpraka1 pawanpraka1 deleted the perm branch January 5, 2021 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants