mirror of
https://github.com/rclone/rclone.git
synced 2025-12-12 06:24:14 +01:00
Version v1.66.0
This commit is contained in:
@@ -4,6 +4,7 @@ description: "Serve the remote as an NFS mount"
|
||||
slug: rclone_serve_nfs
|
||||
url: /commands/rclone_serve_nfs/
|
||||
groups: Filter
|
||||
status: Experimental
|
||||
versionIntroduced: v1.65
|
||||
# autogenerated - DO NOT EDIT, instead edit the source code in cmd/serve/nfs/ and as part of making a release run "make commanddocs"
|
||||
---
|
||||
@@ -26,7 +27,9 @@ NFS mount over local network, you need to specify the listening address and port
|
||||
|
||||
Modifying files through NFS protocol requires VFS caching. Usually you will need to specify `--vfs-cache-mode`
|
||||
in order to be able to write to the mountpoint (full is recommended). If you don't specify VFS cache mode,
|
||||
the mount will be read-only.
|
||||
the mount will be read-only. Note also that `--nfs-cache-handle-limit` controls the maximum number of cached file handles stored by the caching handler.
|
||||
This should not be set too low or you may experience errors when trying to access files. The default is `1000000`, but consider lowering this limit if
|
||||
the server's system resource usage causes problems.
|
||||
|
||||
To serve NFS over the network use following command:
|
||||
|
||||
@@ -353,6 +356,28 @@ If the flag is not provided on the command line, then its default value depends
|
||||
on the operating system where rclone runs: "true" on Windows and macOS, "false"
|
||||
otherwise. If the flag is provided without a value, then it is "true".
|
||||
|
||||
The `--no-unicode-normalization` flag controls whether a similar "fixup" is
|
||||
performed for filenames that differ but are [canonically
|
||||
equivalent](https://en.wikipedia.org/wiki/Unicode_equivalence) with respect to
|
||||
unicode. Unicode normalization can be particularly helpful for users of macOS,
|
||||
which prefers form NFD instead of the NFC used by most other platforms. It is
|
||||
therefore highly recommended to keep the default of `false` on macOS, to avoid
|
||||
encoding compatibility issues.
|
||||
|
||||
In the (probably unlikely) event that a directory has multiple duplicate
|
||||
filenames after applying case and unicode normalization, the `--vfs-block-norm-dupes`
|
||||
flag allows hiding these duplicates. This comes with a performance tradeoff, as
|
||||
rclone will have to scan the entire directory for duplicates when listing a
|
||||
directory. For this reason, it is recommended to leave this disabled if not
|
||||
needed. However, macOS users may wish to consider using it, as otherwise, if a
|
||||
remote directory contains both NFC and NFD versions of the same filename, an odd
|
||||
situation will occur: both versions of the file will be visible in the mount,
|
||||
and both will appear to be editable, however, editing either version will
|
||||
actually result in only the NFD version getting edited under the hood. `--vfs-block-
|
||||
norm-dupes` prevents this confusion by detecting this scenario, hiding the
|
||||
duplicates, and logging an error, similar to how this is handled in `rclone
|
||||
sync`.
|
||||
|
||||
## VFS Disk Options
|
||||
|
||||
This flag allows you to manually set the statistics about the filing system.
|
||||
@@ -387,6 +412,7 @@ rclone serve nfs remote:path [flags]
|
||||
--file-perms FileMode File permissions (default 0666)
|
||||
--gid uint32 Override the gid field set by the filesystem (not supported on Windows) (default 1000)
|
||||
-h, --help help for nfs
|
||||
--nfs-cache-handle-limit int max file handles cached simultaneously (min 5) (default 1000000)
|
||||
--no-checksum Don't compare checksums on up/download
|
||||
--no-modtime Don't read/write the modification time (can speed things up)
|
||||
--no-seek Don't allow seeking in files
|
||||
@@ -394,6 +420,7 @@ rclone serve nfs remote:path [flags]
|
||||
--read-only Only allow read-only access
|
||||
--uid uint32 Override the uid field set by the filesystem (not supported on Windows) (default 1000)
|
||||
--umask int Override the permission bits set by the filesystem (not supported on Windows) (default 2)
|
||||
--vfs-block-norm-dupes If duplicate filenames exist in the same directory (after normalization), log an error and hide the duplicates (may have a performance cost)
|
||||
--vfs-cache-max-age Duration Max time since last access of objects in the cache (default 1h0m0s)
|
||||
--vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
|
||||
--vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off)
|
||||
@@ -406,7 +433,7 @@ rclone serve nfs remote:path [flags]
|
||||
--vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128Mi)
|
||||
--vfs-read-chunk-size-limit SizeSuffix If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached ('off' is unlimited) (default off)
|
||||
--vfs-read-wait Duration Time to wait for in-sequence read before seeking (default 20ms)
|
||||
--vfs-refresh Refreshes the directory cache recursively on start
|
||||
--vfs-refresh Refreshes the directory cache recursively in the background on start
|
||||
--vfs-used-is-size rclone size Use the rclone size algorithm for Used size
|
||||
--vfs-write-back Duration Time to writeback files after last use when using cache (default 5s)
|
||||
--vfs-write-wait Duration Time to wait for in-sequence write before giving error (default 1s)
|
||||
|
||||
Reference in New Issue
Block a user