From 1904c1800ad9c90da765bbcf5b0d6078fc5fbfba Mon Sep 17 00:00:00 2001 From: ravinsp <33562092+ravinsp@users.noreply.github.com> Date: Tue, 18 Feb 2020 14:49:23 +0530 Subject: [PATCH] Switched to FUSE nocache mode. --- src/statefs/state_monitor/fusefs.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/statefs/state_monitor/fusefs.cpp b/src/statefs/state_monitor/fusefs.cpp index d1eafe56..dd8584c9 100644 --- a/src/statefs/state_monitor/fusefs.cpp +++ b/src/statefs/state_monitor/fusefs.cpp @@ -1282,7 +1282,10 @@ int start(const char *arg0, const char *state_hist_dir, const char *fuse_mnt_dir fs.root.fd = -1; fs.root.nlookup = 9999; fs.root.is_symlink = false; - fs.timeout = 86400.0; + + // This is equivalent to specifying --nocache for fuse args. If we need to support caching, + // we need to set this to 86400.0 + fs.timeout = 0; struct stat stat; auto ret = lstat(fs.source.c_str(), &stat);