-
Notifications
You must be signed in to change notification settings - Fork 607
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
Allow for binding a named pipe on Windows #2661
Conversation
38ec12d
to
e70c97d
Compare
edf558a
to
8fd5fe0
Compare
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.
First review pass done, mostly LGTM but I suggested some added checks or minor changes to the newly-added helper functions.
48b3686
to
9341076
Compare
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.
Second review pass done with some just some minor nits.
Currently unsure why the Linux mount-related tests are failing, recommend adding extra logging to the changed functions and maybe even the testutils.AssertXYZ()
helper functions to further aid debugging.
f15fff1
to
313119a
Compare
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.
Dropped in comments just for sanity checks. I'm not fully conversant with the project, so didn't give any functional related feedback.
Good work!
if !os.IsNotExist(err) { | ||
return fmt.Errorf("failed to stat %q: %w", src, err) | ||
} | ||
if err := os.MkdirAll(src, 0o755); 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.
not sure about the 755 permission, is it the least needed for everything to work -- seems a bit too much, anything in the 6xx ranges?
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.
Just moved this part of the code. But read and execute permission on the dir for users other than the owner seems ok.
@AkihiroSuda, should we change the permission?
e6a2d75
to
4ba6432
Compare
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.
3c7843e
to
c0f1514
Compare
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.
couple minor comments but overall LGTM
18cda77
to
fc5dae0
Compare
Needs rebase |
- Allow users to bind a named pipe on Windows - Refactor windows volume spec split - Split mount code for Linux and Windows environments - Adds a check in create.go#L298 to log a warning only when there is an error Signed-off-by: Christine Murimi <mor.tina@outlook.com>
fc5dae0
to
e4bf8b9
Compare
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.
Thanks
PR Description
This PR fixes:
Also, adds a check in create.go#L298 to log a warning only when there is an error