[PATCH 26/33] generic/622: check that strictatime/lazytime actually work

Darrick J. Wong
2025-10-29T01:27:12Z

Make sure that we can mount with these options before testing their
behaviors.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
---
tests/generic/622 | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/tests/generic/622 b/tests/generic/622
index a67931ad877fde..559943d5403805 100755
--- a/tests/generic/622
+++ b/tests/generic/622
@@ -88,6 +88,10 @@ _require_xfs_io_command "syncfs"
# test that timestamp updates aren't persisted when they shouldn't be.

_scratch_mkfs &>> $seqres.full
+_try_scratch_mount -o strictatime || _notrun "strictatime not supported"
+_scratch_unmount
+_try_scratch_mount -o lazytime || _notrun "lazytime not supported"
+_scratch_unmount
_scratch_mount

# Create the test file for which we'll update and check the timestamps.