aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2016-02-16 10:47:06 -0800
committerNikolaus Rath <Nikolaus@rath.org>2016-02-16 10:47:06 -0800
commit451f2075f2b46de34235ba585bc923db2cb37eb5 (patch)
tree4f9109004efcf99cdd792e51eaf5d24ffb7d6a9b /sshfs.c
parente812e29d39f0e7aaf9ead9a19a9a4f288300a7e2 (diff)
parent391f6767050cce2d34e7d556566c0abd02510854 (diff)
downloadsshfs-451f2075f2b46de34235ba585bc923db2cb37eb5.tar
sshfs-451f2075f2b46de34235ba585bc923db2cb37eb5.tar.gz
sshfs-451f2075f2b46de34235ba585bc923db2cb37eb5.tar.bz2
sshfs-451f2075f2b46de34235ba585bc923db2cb37eb5.zip
Merge pull request #6 from jmmv/cache-options
Make cache parameters configurable
Diffstat (limited to 'sshfs.c')
-rw-r--r--sshfs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sshfs.c b/sshfs.c
index 84b2359..ce30a0f 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -3377,8 +3377,15 @@ 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 cache_clean_interval=N\n"
+" sets the interval for automatic cleaning of the\n"
+" cache (default: 60)\n"
+" -o cache_min_clean_interval=N\n"
+" sets the interval for forced cleaning of the\n"
+" cache if full (default: 5)\n"
" -o workaround=LIST colon separated list of workarounds\n"
" none no workarounds enabled\n"
" all all workarounds enabled\n"