[Bug 236560] [FUSE] fuse(4) ignores FOPEN_KEEP_CACHE

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Mar 15 22:42:02 UTC 2019


            Bug ID: 236560
           Summary: [FUSE] fuse(4) ignores FOPEN_KEEP_CACHE
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: asomers at FreeBSD.org

If a fuse filesystem sets FOPEN_KEEP_CACHE in the response to FUSE_OPEN, then
the kernel should not flush its read caches on subsequent open(2)s of the same
file.  Our fuse(4) driver does indeed check for that flag in fuse_vnode_open. 
However, the check doesn't work, because the flag isn't saved from the previous
FUSE_OPEN.  The flag is guaranteed to be unset in that code path.  The solution
would be to save the open_flags in the vnode.

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list