From c1e799b4da8418d907f45f5cf3928afe491040ac Mon Sep 17 00:00:00 2001 From: Julio Merino Date: Wed, 27 Jan 2016 11:17:15 -0500 Subject: 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). --- sshfs.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sshfs.c') 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" -- cgit v1.2.3