opnsense-src/sys/fs/fuse
Alan Somers 0bade34633 fusefs: update atime on reads when using cached attributes
When using cached attributes, whether or not the data cache is enabled,
fusefs must update a file's atime whenever it reads from it, so long as
it wasn't mounted with -o noatime.  Update it in-kernel, and flush it to
the server on close or during the next setattr operation.

The downside is that close() will now frequently trigger a FUSE_SETATTR
upcall.  But if you care about performance, you should be using
-o noatime anyway.

Reviewed by:	pfg
Differential Revision: https://reviews.freebsd.org/D33145

(cherry picked from commit 91972cfcdd)

fusefs: fix 32-bit build of the tests after 91972cfcdd

(cherry picked from commit d109559ddb)
2021-12-14 15:15:53 -07:00
..
fuse.h [skip ci] update copyright headers in fusefs files 2019-06-28 04:18:10 +00:00
fuse_device.c fusefs: support EVFILT_WRITE on /dev/fuse 2021-07-03 17:57:51 -06:00
fuse_file.c fusefs: implement FUSE_NO_OPEN_SUPPORT and FUSE_NO_OPENDIR_SUPPORT 2021-12-06 21:51:55 -07:00
fuse_file.h fusefs: implement FUSE_NO_OPEN_SUPPORT and FUSE_NO_OPENDIR_SUPPORT 2021-12-06 21:51:55 -07:00
fuse_internal.c fusefs: update atime on reads when using cached attributes 2021-12-14 15:15:53 -07:00
fuse_internal.h fusefs: quiet some cache-related warnings 2021-12-06 22:04:44 -07:00
fuse_io.c fusefs: update atime on reads when using cached attributes 2021-12-14 15:15:53 -07:00
fuse_io.h [skip ci] update copyright headers in fusefs files 2019-06-28 04:18:10 +00:00
fuse_ipc.c fusefs: ensure that FUSE ops' headers' unique values are actually unique 2021-07-03 18:05:13 -06:00
fuse_ipc.h fusefs: implement FUSE_NO_OPEN_SUPPORT and FUSE_NO_OPENDIR_SUPPORT 2021-12-06 21:51:55 -07:00
fuse_kernel.h fusefs: implement FUSE_NO_OPEN_SUPPORT and FUSE_NO_OPENDIR_SUPPORT 2021-12-06 21:51:55 -07:00
fuse_main.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (8 of many) 2020-02-24 10:33:51 +00:00
fuse_node.c fusefs: update atime on reads when using cached attributes 2021-12-14 15:15:53 -07:00
fuse_node.h fusefs: update atime on reads when using cached attributes 2021-12-14 15:15:53 -07:00
fuse_vfsops.c fusefs: quiet some cache-related warnings 2021-12-06 22:04:44 -07:00
fuse_vnops.c fusefs: update atime on reads when using cached attributes 2021-12-14 15:15:53 -07:00