aboutsummaryrefslogtreecommitdiff
path: root/sshfs.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 /sshfs.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 'sshfs.c')
-rw-r--r--sshfs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sshfs.c b/sshfs.c
index 9809057..4f041e0 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -423,7 +423,13 @@ static struct fuse_opt sshfs_opts[] = {
FUSE_OPT_KEY("-p ", KEY_PORT),
FUSE_OPT_KEY("-C", KEY_COMPRESS),
FUSE_OPT_KEY("-F ", KEY_CONFIGFILE),
+
+ /* For backwards compatibility */
+ SSHFS_OPT("cache=yes", dir_cache, 1),
+ SSHFS_OPT("cache=no", dir_cache, 0),
+
FUSE_OPT_END
+
};
static struct fuse_opt workaround_opts[] = {