-
Notifications
You must be signed in to change notification settings - Fork 325
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
Examples get "permission denied" on macOS #373
Comments
have you tried implementing the Access operation? |
oh, wait it's the example, so it should provide the access function. |
I can confirm running into the same problem on MacOS 10.15.6 |
Adding the follwing solves the problem for me:
|
sorry for the delay. I had a closer look. So, for some reason OSX is checking access(W_OK), on mount ie.
that is actually correct, as the Dynamic example is not a writable filesystem. It's unclear to me why OSXFUSE insists on having a writable root for the mount directory. |
I had a brief look at the OSXFUSE project page on github, but with the project being taken closed-source, it's not clear where to report bugs. Is there someone here who could post the bugreport in the appropriate queue? |
Ports commit fee50bf to poll_darwin.go in order to allow read-only mounts on Darwin as well. Fixes rfjakob/gocryptfs#595 where we can't use gocryptfs -ro or gocryptfs -reverse on macOS because go-fuse tries to write to the read-only mountpoint during initial mount. Cheers! Edit: signed the CLA and re-pushed so automated checks pass Edit: potentially fixes hanwen#373 hanwen#420
I tried to run the examples from godoc.org for the
go-fuse/v2/fs
package on macOS but they failed pretty much out of the box for me. My steps:brew cask install osxfuse
sudo reboot
mkdir x && go mod init example.com/x
main.go
go mod vendor
go run main.go
Interestingly, the
unionfs
example works. From what I can see it uses the oldnodefs
/pathfs
APIs while the example above used the newfs
API. Any thoughts on why the new API is resulting in permission errors?More hints: It does work if I
sudo go run main.go
but then subsequently I can only access the mounted filesystem as root too. I also tried changing the directory from/tmp/
to a local folder and that made no difference.The text was updated successfully, but these errors were encountered: