rclone/vfs/vfstest
Saleh Dindar ef2ef8ef84 nfsmount: New mount command to provide mount mechanism on macOS without FUSE
Summary:
In cases where cmount is not available in macOS, we alias nfsmount to mount command and transparently start the NFS server and mount it to the target dir.

The NFS server is started on localhost on a random port so it is reasonably secure.

Test Plan:
```
go run rclone.go mount --http-url https://beta.rclone.org :http: nfs-test
```

Added mount tests:
```
go test ./cmd/nfsmount
```
2023-10-06 14:08:20 +01:00
..
dir.go mount: run tests in a subprocess to fix deadlock - fixes #3259 2022-06-16 16:48:09 +01:00
edge_cases.go vfstests: move functional tests from mountlib and make them work with VFS 2020-04-20 10:42:33 +01:00
file.go vfstests: move functional tests from mountlib and make them work with VFS 2020-04-20 10:42:33 +01:00
fs.go nfsmount: New mount command to provide mount mechanism on macOS without FUSE 2023-10-06 14:08:20 +01:00
os.go vfs: Add go-billy dependency and make sure vfs.Handle implements billy.File 2023-10-06 14:08:20 +01:00
read.go Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
read_non_unix.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
read_unix.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
submount.go Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
vfs.go build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
write.go mount: run tests in a subprocess to fix deadlock - fixes #3259 2022-06-16 16:48:09 +01:00
write_non_unix.go Fix lint issues reported by staticcheck 2022-06-13 21:13:50 +02:00
write_unix.go mount: run tests in a subprocess to fix deadlock - fixes #3259 2022-06-16 16:48:09 +01:00