aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
authorJulio Merino <jmmv@google.com>2016-01-27 11:17:15 -0500
committerJulio Merino <jmmv@meroh.net>2016-02-10 23:18:35 -0500
commitc1e799b4da8418d907f45f5cf3928afe491040ac (patch)
tree3095f3e7e5f6231e3de30ecd23eb5df0f304538b /sshfs.c
parentebfeebd468551fa5e024b36dd218042cc5b7597e (diff)
downloadsshfs-c1e799b4da8418d907f45f5cf3928afe491040ac.tar
sshfs-c1e799b4da8418d907f45f5cf3928afe491040ac.tar.gz
sshfs-c1e799b4da8418d907f45f5cf3928afe491040ac.tar.bz2
sshfs-c1e799b4da8418d907f45f5cf3928afe491040ac.zip
Expose the cache clean interval settings as flags
Allow the user to customize the cache regular and minimum clean intervals as flags via the new cache_clean_interval and cache_min_clean_interval options. While doing this, rename the internal variables and constants to suffix them with their unit (seconds).
Diffstat (limited to 'sshfs.c')
-rw-r--r--sshfs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sshfs.c b/sshfs.c
index b010828..ce30a0f 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -3380,6 +3380,12 @@ static void usage(const char *progname)
" -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"