Date: Thu, 02 Aug 2018 00:15:19 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 230258] [FUSE] [BUG]: Attributes caching issue Message-ID: <bug-230258-227-VocKIeCY7A@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-230258-227@https.bugs.freebsd.org/bugzilla/> References: <bug-230258-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230258 --- Comment #1 from Conrad Meyer <cem@freebsd.org> --- FreeBSD's bufcache caches file contents by default. This can be worked aro= und by having userspace open files with the O_DIRECT option, or by having your = FUSE filesystem's FUSE_OPEN handler return FOPEN_DIRECT_IO in open_flags (i.e. s= et the 'direct_io' flag in fuse_file_info). Your test 'hello' filesystem does not appear set the direct_io flag on hell= o1 and hello2 (and of course 'echo >>' is unlikely to), so that may explain corrupt results. Given FreeBSD's local cache cannot possibly be consistent with your distrib= uted filesystem (at least without sophisticated cache invalidation that FUSE probably lacks), you likely want to always operate in DIRECT mode. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230258-227-VocKIeCY7A>