opnsense-src/sys/fs
Rick Macklem 57ce37f9dc nfscl: Make NFSv4.2 Copy set atime on infd
RFC7862 does not specify infile atime behaviour when a NFSv4.2 Copy
operation is performed.  Since the collective opinion of a mailing
list discussion (on freebsd-hackers@) seemed to indicate that
copy_file_range(2) should update atime on the infd,
even if there is no data copied, this
patch attempts to ensure that behaviour.

For Copy, it preceeds the Copy operation with a Setattr of
TimeAccess_Set(NFSv4. speak for atime) for the invp.  For the case
where no data will be copied, it does a Setattr RPC to set
TimeAccess_Set for the invp.

A __FreeBSD_version bump will be done as a separate commit, since
this patch changes the internal interface between the nfscommon and
nfscl modules.

MFC after:	1 month
2023-10-18 13:07:39 -07:00
..
autofs sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
cd9660 sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00
cuse sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
deadfs sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
devfs devfs: add integrity asserts for cdevp_list 2023-09-21 11:51:12 -05:00
ext2fs sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
fdescfs Fix MNT_IGNORE for devfs, fdescfs and nullfs 2023-08-26 12:08:37 +01:00
fifofs sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
fuse fusefs: sanitize FUSE_READLINK results for embedded NULs 2023-10-07 08:22:03 -06:00
mntfs sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
msdosfs sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
nfs nfscl: Make NFSv4.2 Copy set atime on infd 2023-10-18 13:07:39 -07:00
nfsclient nfscl: Make NFSv4.2 Copy set atime on infd 2023-10-18 13:07:39 -07:00
nfsserver nfsd: Avoid acquiring a vnode for some NFSv4 Readdir operations 2023-10-17 13:55:48 -07:00
nullfs Fix MNT_IGNORE for devfs, fdescfs and nullfs 2023-08-26 12:08:37 +01:00
procfs sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
pseudofs Remove my middle name. 2023-08-17 15:08:30 +02:00
smbfs sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
tarfs vfs: use __enum_uint8 for vtype and vstate 2023-07-05 15:06:30 +00:00
tmpfs sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
udf sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
unionfs sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00