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

Missing FUSE helpers #85

Closed
anacrolix opened this issue Apr 27, 2015 · 5 comments
Closed

Missing FUSE helpers #85

anacrolix opened this issue Apr 27, 2015 · 5 comments

Comments

@anacrolix
Copy link

If FUSE is unavailable, it would be nice to have some way to determine that this is the cause for mount errors as it varies by platform. Something like the "os"-package-style func IsMissingFuseError(error) bool, or a another function like func FuseAvailable() bool.

For context, this is what I currently get on some tests, I want to skip them if FUSE isn't available:

anacrolix@Matts-MBP:~/gopath/src/github.com/anacrolix/torrent$ go test ./fs
/Library/Filesystems/osxfusefs.fs/Support/osxfusefs.kext failed to load - (libkern/kext) not loadable (reason unspecified); check the system/kernel logs for errors or try kextutil(8).
--- FAIL: TestUnmountWedged (0.23s)
    torrentfs_test.go:111: error mounting: &exec.ExitError{ProcessState:(*os.ProcessState)(0xc20801f6c0)}

The osxfusefs.kext line I think is written out of band by fusermount most likely, and the ExitError is given to me from fuse.Mount.

@w-vi
Copy link

w-vi commented Apr 27, 2015

👍 for this feature, I'm in similar situation

@tv42
Copy link
Member

tv42 commented May 27, 2015

That looks like you actually have osxfuse installed, because it got that far.

There's just a lot of different things that could go wrong, and I don't really have a comprehensive catalog of them..

@anacrolix
Copy link
Author

As an example, loadOSXFUSE in mount() in mount_darwin.go.

@tv42
Copy link
Member

tv42 commented Jun 1, 2015

Sure, but wrong how? Especially the case you have above -- the binary exists, but running it produces some output and an exit status -- could mean many things.

@tv42
Copy link
Member

tv42 commented Apr 15, 2020

macOS support has been removed. If somebody wants to pick up maintaining an open source macOS FUSE, or wants to fund supporting the proprietary continuation of OSXFUSE, please get in touch.
#224

@tv42 tv42 closed this as completed Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants