rclone/cmd/mountlib
nielash 5638a3841f serve nfs: fix writing files via Finder on macOS - fixes #7503
Before this change, writing files to an `nfsmount` via Finder on macOS would
cause critical errors, rendering `nfsmount` effectively unusable on macOS. This
change fixes the issue so that writes via Finder should be possible.

The issue was primarily caused by the handler's HandleLimit being set to -1. -1 is
the correct default for a NullAuthHandler, but not for a CachingHandler, which
interprets -1 not as "no limit" but as "no cache".

This change sets a high default of 1000000, and gives the user control over it
with a new --nfs-cache-handle-limit flag (available in both `serve nfs` and
`nfsmount`. A minimum of 5 is enforced, as any lower than this will be
insufficient to support directory listing.
2024-02-18 05:08:59 -05:00
..
check_linux.go mount: notice daemon dying much quicker 2023-12-01 09:36:05 +00:00
check_other.go mount: notice daemon dying much quicker 2023-12-01 09:36:05 +00:00
mount.go systemd: Fix detection and switch to the coreos package everywhere 2023-12-02 14:17:15 +00:00
mount.md serve nfs: fix writing files via Finder on macOS - fixes #7503 2024-02-18 05:08:59 -05:00
rc_test.go Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
rc.go mount: error strings should not be capitalized 2023-03-26 14:28:15 +02:00
sighup_unsupported.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
sighup.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
utils.go mount: avoid incorrect or premature overlap check on windows 2023-01-24 22:27:02 +01:00