Closed goldsborough closed 2 years ago
2020/09/20 19:41:37 rx 3: ACCESS i1 {u=501 g=20 w}
2020/09/20 19:41:37 tx 3: 13=permission denied
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:
// Implement (handleless) Access
var _ = (fs.NodeAccesser)((*bytesNode)(nil))
func (bn *bytesNode) Access(ctx context.Context, input uint32) (errno syscall.Errno) {
return 0
}
sorry for the delay.
I had a closer look. So, for some reason OSX is checking access(W_OK), on mount ie.
2020/09/20 19:41:37 rx 3: ACCESS i1 {u=501 g=20 w}
2020/09/20 19:41:37 tx 3: 13=permission denied
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?
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
goroutine 1 [running]: log.Panic(0xc00017fea8, 0x1, 0x1) /usr/local/Cellar/go/1.15/libexec/src/log/log.go:351 +0xae main.main() /Users/goldsborough/Documents/Projects/x/main.go:118 +0x125 exit status 2