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