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

Better mount error message? #170

Open
gabriel opened this issue Feb 9, 2017 · 3 comments
Open

Better mount error message? #170

gabriel opened this issue Feb 9, 2017 · 3 comments

Comments

@gabriel
Copy link

gabriel commented Feb 9, 2017

The error message returned from mount failure here can be "exit status 255":
https://github.com/bazil/fuse/blob/master/fuse.go#L173

This isn't super helpful in identifying the mount problem. Perhaps it should pass along more context about what exited with that status and any output from running mount or load which includes what fuse reported went wrong.

@tv42
Copy link
Member

tv42 commented Feb 9, 2017

Right now, the mount helper stdout/stderr are logged but not captured in the error. Logging has been more helpful for me as there's too many scenarios where the mount helper hangs, and if its stdout/stderr were just buffered somewhere, nothing would ever be displayed.

fuse/mount_linux.go

Lines 98 to 99 in 371fbbd

go lineLogger(&wg, "mount helper output", neverIgnoreLine, stdout)
go lineLogger(&wg, "mount helper error", handleFusermountStderr(helperErrCh), stderr)

So, with that in mind -- you should have still seen whatever complaint the mount helper had. What actually happened, and how can I reproduce it?

@gabriel
Copy link
Author

gabriel commented Feb 9, 2017

Not reproducable unfortunately, and the case I encoutered was a failure in loading the kext:
macfuse/macfuse#358

Here is something that might be better:
#171

@hookenz
Copy link

hookenz commented Feb 28, 2018

I'd like this. While fuse.Mount prints something, I want to return the message to my myfs.mount handler app rather than just "fusermount: exit status 1" I want what's logged to stdout which is "fusermount: failed to access mountpoint /my/path: Permission denied"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants