aboutsummaryrefslogtreecommitdiff
path: root/cache.c
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2017-08-03 18:26:19 +0200
committerNikolaus Rath <Nikolaus@rath.org>2017-08-03 18:26:19 +0200
commit63300fd564de615ba70722347eea45afe1950a33 (patch)
tree4072bb99efb58dd47c03f878f6c94b43154e468d /cache.c
parent45710c81d746fab84ee60e8b474277fbaa76e5a7 (diff)
downloadsshfs-63300fd564de615ba70722347eea45afe1950a33.tar
sshfs-63300fd564de615ba70722347eea45afe1950a33.tar.gz
sshfs-63300fd564de615ba70722347eea45afe1950a33.tar.bz2
sshfs-63300fd564de615ba70722347eea45afe1950a33.zip
Accept -o cache_* options for backward compatibility.
Fixes: #73.
Diffstat (limited to 'cache.c')
-rw-r--r--cache.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/cache.c b/cache.c
index 5740562..b4939c7 100644
--- a/cache.c
+++ b/cache.c
@@ -586,6 +586,19 @@ static const struct fuse_opt cache_opts[] = {
clean_interval_secs), 0 },
{ "dcache_min_clean_interval=%u", offsetof(struct cache,
min_clean_interval_secs), 0 },
+
+ /* For backwards compatibility */
+ { "cache_timeout=%u", offsetof(struct cache, stat_timeout_secs), 0 },
+ { "cache_timeout=%u", offsetof(struct cache, dir_timeout_secs), 0 },
+ { "cache_timeout=%u", offsetof(struct cache, link_timeout_secs), 0 },
+ { "cache_stat_timeout=%u", offsetof(struct cache, stat_timeout_secs), 0 },
+ { "cache_dir_timeout=%u", offsetof(struct cache, dir_timeout_secs), 0 },
+ { "cache_link_timeout=%u", offsetof(struct cache, link_timeout_secs), 0 },
+ { "cache_max_size=%u", offsetof(struct cache, max_size), 0 },
+ { "cache_clean_interval=%u", offsetof(struct cache,
+ clean_interval_secs), 0 },
+ { "cache_min_clean_interval=%u", offsetof(struct cache,
+ min_clean_interval_secs), 0 },
FUSE_OPT_END
};