From cf5050126e57c3c7efeb27f93735752aaed99639 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 1 Oct 2015 18:02:13 +0200 Subject: fuse: Disable entry cache to work around race condition --- document-portal/xdp-fuse.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'document-portal') diff --git a/document-portal/xdp-fuse.c b/document-portal/xdp-fuse.c index 2d013ae..2de239a 100644 --- a/document-portal/xdp-fuse.c +++ b/document-portal/xdp-fuse.c @@ -94,7 +94,11 @@ get_attr_cache_time (int st_mode) static double get_entry_cache_time (fuse_ino_t inode) { - return 60.0; + /* We have to disable entry caches because otherwise we have a race + on rename. The kernel set the target inode as NOEXIST after a + rename, which breaks in the tmp over real case due to us reusing + the old non-temp inode. */ + return 0.0; } /******************************* XdpTmp ******************************* -- cgit v1.2.1