mirror_zfs/tests/zfs-tests/tests/functional/ctime
Rob N 71d407cc39 Linux 6.7 compat: zfs_setattr fix atime update
In db4fc559c I messed up and changed this bit of code to set the inode
atime to an uninitialised value, when actually it was just supposed to
loading the atime from the inode to be stored in the SA. This changes it
to what it should have been.

Ensure times change by the right amount Previously, we only checked
if the times changed at all, which missed a bug where the atime was
being set to an undefined value.

Now ensure the times change by two seconds (or thereabouts), ensuring
we catch cases where we set the time to something bonkers

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #15762
Closes #15773
(cherry picked from commit 2ecc2dfe42)
2024-02-08 13:29:28 -08:00
..
.gitignore Add configure option to enable gcov analysis 2017-09-15 10:24:13 -07:00
cleanup.ksh Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
ctime_001_pos.ksh Add configure option to enable gcov analysis 2017-09-15 10:24:13 -07:00
ctime.c Linux 6.7 compat: zfs_setattr fix atime update 2024-02-08 13:29:28 -08:00
Makefile.am Modifying XATTRs doesnt change the ctime 2017-09-13 12:20:07 -07:00
setup.ksh Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00