-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
None
-
None
-
<distro/arch>
-
3
-
9223372036854775807
sanityn test_39a and test_39d intermittently fail with "mtime is not updated on write". They read date +%s, write, read date +%s again, and require d1 <= mtime <= d2. That fails when the kernel timestamp falls just outside the userspace window.
This is the same kernel vs. userspace clock skew that b6242fd0f9ce ("LU-12105 tests: fix sanity/39 checks and style") fixed in sanity.sh test_39c/39l. That patch didn't touch sanityn.sh.
Fix: the same as LU-12105, a sleep 0.5 before and after the write.