[Bug 235774] [FUSEFS]: Need to evict invalidated cache contents on fuse_write_directbackend()
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Apr 12 19:05:35 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235774
--- Comment #5 from commit-hook at freebsd.org ---
A commit references this bug:
Author: asomers
Date: Fri Apr 12 19:05:08 UTC 2019
New revision: 346162
URL: https://svnweb.freebsd.org/changeset/base/346162
Log:
fusefs: evict invalidated cache contents during write-through
fusefs's default cache mode is "writethrough", although it currently works
more like "write-around"; writes bypass the cache completely. Since writes
bypass the cache, they were leaving stale previously-read data in the cache.
This commit invalidates that stale data. It also adds a new global
v_inval_buf_range method, like vtruncbuf but for a range of a file.
PR: 235774
Reported by: cem
Sponsored by: The FreeBSD Foundation
Changes:
projects/fuse2/sys/fs/fuse/fuse_io.c
projects/fuse2/sys/kern/vfs_subr.c
projects/fuse2/sys/sys/vnode.h
projects/fuse2/tests/sys/fs/fusefs/write.cc
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-fs
mailing list