Date: Fri, 15 Mar 2019 22:42:00 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 236560] [FUSE] fuse(4) ignores FOPEN_KEEP_CACHE Message-ID: <bug-236560-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236560 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@FreeBSD.org Reporter: asomers@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.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-236560-227>
