1
mirror of https://github.com/rclone/rclone synced 2024-12-02 11:53:45 +01:00
rclone/cmd/serve/nfs
Saleh Dindar c69cf46f06 serve nfs: new serve nfs command
Summary:
Adding a new command to serve any remote over NFS. This is only useful for new macOS versions where FUSE mounts are not available.
 * Added willscot/go-nfs dependency and updated go.mod and go.sum

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

Test that it is serving correctly by mounting the NFS directory.

```
mkdir nfs-test
mount -oport=58654,mountport=58654 localhost: nfs-test
```

Then we can list the mounted directory to see it is working.
```
ls nfs-test
```
2023-10-06 14:08:20 +01:00
..
filesystem.go serve nfs: new serve nfs command 2023-10-06 14:08:20 +01:00
handler.go serve nfs: new serve nfs command 2023-10-06 14:08:20 +01:00
nfs_unsupported.go serve nfs: new serve nfs command 2023-10-06 14:08:20 +01:00
nfs.go serve nfs: new serve nfs command 2023-10-06 14:08:20 +01:00
server.go serve nfs: new serve nfs command 2023-10-06 14:08:20 +01:00