aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
authorJulio Merino <jmmv@google.com>2016-01-27 11:07:19 -0500
committerJulio Merino <jmmv@meroh.net>2016-02-10 23:18:35 -0500
commitebfeebd468551fa5e024b36dd218042cc5b7597e (patch)
tree34aaeae7bce4713b677605137c2be79b788f6710 /sshfs.c
parentd1ddbbcae51f8004e38971fb3546ed5c98effd8b (diff)
downloadsshfs-ebfeebd468551fa5e024b36dd218042cc5b7597e.tar
sshfs-ebfeebd468551fa5e024b36dd218042cc5b7597e.tar.gz
sshfs-ebfeebd468551fa5e024b36dd218042cc5b7597e.tar.bz2
sshfs-ebfeebd468551fa5e024b36dd218042cc5b7597e.zip
Expose the maximum cache size setting as a flag
Allow the user to customize the size of the sshfs cache by adding a new max_cache_size flag and turning the hardcoded constant into a variable.
Diffstat (limited to 'sshfs.c')
-rw-r--r--sshfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sshfs.c b/sshfs.c
index 84b2359..b010828 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -3377,6 +3377,7 @@ static void usage(const char *progname)
" -o sync_readdir synchronous readdir\n"
" -o sshfs_debug print some debugging information\n"
" -o cache=BOOL enable caching {yes,no} (default: yes)\n"
+" -o cache_max_size=N sets the maximum size of the cache (default: 10000)\n"
" -o cache_timeout=N sets timeout for caches in seconds (default: 20)\n"
" -o cache_X_timeout=N sets timeout for {stat,dir,link} cache\n"
" -o workaround=LIST colon separated list of workarounds\n"