Skip site navigation (1)Skip section navigation (2)
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=230258

--- Comment #1 from Conrad Meyer <cem@freebsd.org> ---
FreeBSD's bufcache caches file contents by default.  This can be worked around
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. set
the 'direct_io' flag in fuse_file_info).

Your test 'hello' filesystem does not appear set the direct_io flag on hello1
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 distributed
filesystem (at least without sophisticated cache invalidation that FUSE
probably lacks), you likely want to always operate in DIRECT mode.

-- 
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>