From f8df458f239de38d29be3161f46cd7fba74bdacf Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Sun, 6 Aug 2017 10:29:42 +0200 Subject: Actually disable writeback cache, instead of just claiming to do so. --- sshfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sshfs.c') 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; -- cgit v1.2.3