1
mirror of https://github.com/rclone/rclone synced 2024-11-16 16:15:34 +01:00
rclone/cmd/mount
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
..
test Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
dir.go mount: replace deprecated bazil/fuse specific constants with syscall constants 2023-03-26 14:28:15 +02:00
file.go mount: remove legacy OS X remnants 2022-06-13 18:06:38 +01:00
fs.go mount: replace deprecated bazil/fuse specific constants with syscall constants 2023-03-26 14:28:15 +02:00
handle.go mount: removed unnecessary byte slice allocation for reads 2023-04-30 17:54:30 +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
mount.go mount: avoid incorrect or premature overlap check on windows 2023-01-24 22:27:02 +01:00