generic: test for lazytime timestamp updates
authorEric Biggers <ebiggers@google.com>
Fri, 22 Jan 2021 01:44:34 +0000 (17:44 -0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 24 Jan 2021 15:15:24 +0000 (23:15 +0800)
commit44a1fbf786a89146e1166b90c7c98b260eddaccb
tree6a8fe8ee9bfbeb8db713d016b2c17c485eeeb6d9
parente2072f840804bbf336285dd3eb9c6c0ebe85287f
generic: test for lazytime timestamp updates

Test that when the lazytime mount option is enabled, updates to atime,
mtime, and ctime get persisted in the cases when they should be.

This test currently runs on ext4, f2fs, and xfs, since it's limited to
filesystems that support the shutdown ioctl.

This test currently passes on ext4 and f2fs.  On xfs, kernel
commit 1e249cb5b7fc ("fs: fix lazytime expiration handling in
__writeback_single_inode()") is needed for the test to pass, since xfs
had a bug where it didn't persist timestamps when it should have.

[Eryu: add shutdown metadata atime group]

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/622 [new file with mode: 0755]
tests/generic/622.out [new file with mode: 0644]
tests/generic/group