freebsd-dev/sys/fs/fuse
Alan Somers 91972cfcdd 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.

MFC after:	2 weeks
Reviewed by:	pfg
Differential Revision: https://reviews.freebsd.org/D33145
2021-11-28 18:53:31 -07:00
..
fuse_device.c Simplify fuse_device_filt_write 2021-06-16 15:54:24 -06:00
fuse_file.c fusefs: implement FUSE_NO_OPEN_SUPPORT and FUSE_NO_OPENDIR_SUPPORT 2021-09-26 21:57:29 -06:00
fuse_file.h fusefs: implement FUSE_NO_OPEN_SUPPORT and FUSE_NO_OPENDIR_SUPPORT 2021-09-26 21:57:29 -06:00
fuse_internal.c fusefs: update atime on reads when using cached attributes 2021-11-28 18:53:31 -07:00
fuse_internal.h fusefs: quiet some cache-related warnings 2021-10-06 14:07:33 -06:00
fuse_io.c fusefs: update atime on reads when using cached attributes 2021-11-28 18:53:31 -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-06-19 14:45:29 -06:00
fuse_ipc.h fusefs: implement FUSE_NO_OPEN_SUPPORT and FUSE_NO_OPENDIR_SUPPORT 2021-09-26 21:57:29 -06:00
fuse_kernel.h fusefs: implement FUSE_NO_OPEN_SUPPORT and FUSE_NO_OPENDIR_SUPPORT 2021-09-26 21:57:29 -06: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-11-28 18:53:31 -07:00
fuse_node.h fusefs: update atime on reads when using cached attributes 2021-11-28 18:53:31 -07:00
fuse_vfsops.c vfs: remove the unused thread argument from NDINIT* 2021-11-25 22:50:42 +00:00
fuse_vnops.c fusefs: update atime on reads when using cached attributes 2021-11-28 18:53:31 -07:00
fuse.h [skip ci] update copyright headers in fusefs files 2019-06-28 04:18:10 +00:00