zfs/tests/zfs-tests
Rob N f0bf7a247d
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
2024-01-16 14:01:17 -08:00
..
callbacks Split functional testings via github action matrix 2023-03-15 10:41:05 -07:00
cmd Linux 6.7 compat: zfs_setattr fix atime update 2024-01-16 14:01:17 -08:00
include ZTS: Test for clone, mmap and write for block cloning 2024-01-16 13:15:10 -08:00
tests ZTS: Test for clone, mmap and write for block cloning 2024-01-16 13:15:10 -08:00
.gitignore autoconf: use include directives instead of recursing down cmd 2022-05-10 10:18:38 -07:00
Makefile.am ZTS: Add dirty dnode stress test 2023-12-11 09:59:59 -08:00