diff options
author | Julio Merino <jmmv@google.com> | 2016-01-27 11:17:15 -0500 |
---|---|---|
committer | Julio Merino <jmmv@meroh.net> | 2016-02-10 23:18:35 -0500 |
commit | c1e799b4da8418d907f45f5cf3928afe491040ac (patch) | |
tree | 3095f3e7e5f6231e3de30ecd23eb5df0f304538b /sshfs.c | |
parent | ebfeebd468551fa5e024b36dd218042cc5b7597e (diff) | |
download | sshfs-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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" |