Date: Thu, 13 Apr 2017 16:55:26 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 218636] [fuse] [bug] kernel_cache is enabled by default Message-ID: <bug-218636-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218636 Bug ID: 218636 Summary: [fuse] [bug] kernel_cache is enabled by default Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: ben.rubson@gmail.com Hello, >From MOUNT_FUSEFS(8) : kernel_cache By default cached buffers of a given file are flushed at each open(2). This option disables this behaviour >From sys/fs/fuse/fuse_kernel.h : FOPEN_KEEP_CACHE: don't invalidate the data cache on open However, looking at sys/fs/fuse/fuse_node.c, FOPEN_KEEP_CACHE is never used= ! Adding the following in the else{} of fuse_vnode_open() corrected the issue= : if (!(fuse_open_flags & FOPEN_KEEP_CACHE)) { fuse_io_invalbuf(vp, td); } Issue found investigating this bug : https://github.com/vgough/encfs/issues/315 Many thanks ! Ben --=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-218636-8>