aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2017-08-06 10:29:42 +0200
committerNikolaus Rath <Nikolaus@rath.org>2017-08-06 11:07:23 +0200
commitf8df458f239de38d29be3161f46cd7fba74bdacf (patch)
tree904d35cb56859ad8e26491f074b7d8bbc575a990
parente2a4bc904e90dd05264472a9e7c8dfeb8e1d919d (diff)
downloadsshfs-f8df458f239de38d29be3161f46cd7fba74bdacf.tar
sshfs-f8df458f239de38d29be3161f46cd7fba74bdacf.tar.gz
sshfs-f8df458f239de38d29be3161f46cd7fba74bdacf.tar.bz2
sshfs-f8df458f239de38d29be3161f46cd7fba74bdacf.zip
Actually disable writeback cache, instead of just claiming to do so.
-rw-r--r--ChangeLog.rst6
-rw-r--r--sshfs.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog.rst b/ChangeLog.rst
index 2787d11..a8038b3 100644
--- a/ChangeLog.rst
+++ b/ChangeLog.rst
@@ -1,3 +1,9 @@
+Unreleased Changes
+------------------
+
+* Truly disable the writeback cache, instead of just adjusting the
+ default and printing a warning when explicitly enabled.
+
Release 3.1.0 (2017-08-04)
--------------------------
diff --git a/sshfs.c b/sshfs.c
index 3c4f242..8786b4e 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -3901,9 +3901,11 @@ int main(int argc, char *argv[])
exit(1);
}
- if(sshfs.writeback_cache)
+ if(sshfs.writeback_cache) {
printf("NOTICE: writeback cache is disabled in this release due to potential\n"
"dataloss. It will be re-enabled in a future SSHFS release.\n");
+ sshfs.writeback_cache = 0;
+ }
if (sshfs.idmap == IDMAP_USER)
sshfs.detect_uid = 1;