HomeFreeBSD

nfscl: Only update atime for Copy when noatime is not specified

Description

nfscl: Only update atime for Copy when noatime is not specified

Commit 57ce37f9dcd0 modified the NFSv4.2 Copy operation so that
it will update atime on the infd file whenever possible.
This is done by adding a Setattr of TimeAccess for the
input file.

This patch disables this change for the case of an NFSv4.2
mount with the "noatime" mount option, which avoids the
additional Setattr of TimeAccess operation.

(cherry picked from commit cc760de2183f9c9a4099783d3ff4c770521a4cb6)

Details

Provenance
rmacklemAuthored on Jan 12 2024, 12:38 AM
Parents
rGe23813c0fe03: vm/vm_object.c: minor cleanup
Branches
Unknown
Tags
Unknown