rclone/cmd/cmount
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
..
arch.go selfupdate: abort if updating would discard fuse semantics 2021-03-22 22:55:24 +03:00
fs.go cmount: use atomic types 2023-08-22 12:52:13 +01:00
mount.go cmount: use atomic types 2023-08-22 12:52:13 +01:00
mount_brew.go mount: clarify rclone mount error when installed via homebrew 2023-03-29 13:59:27 +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
mountpoint_other.go mount: avoid incorrect or premature overlap check on windows 2023-01-24 22:27:02 +01:00
mountpoint_windows.go mount: avoid incorrect or premature overlap check on windows 2023-01-24 22:27:02 +01:00