rclone/cmd/mount2
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
..
file.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
fs.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
mount.go docs: fix typos found by codespell in docs and code comments 2023-09-23 12:20:01 +01:00
mount_test.go nfsmount: New mount command to provide mount mechanism on macOS without FUSE 2023-10-06 14:08:20 +01:00
mount_unsupported.go build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
node.go mount2: disable xattrs 2023-04-30 17:56:47 +01:00