generic: Add regression test for tail page zeroing
PATCH v2 1/1 generic: Add regression test for tail page zeroing
Add test checking for a race in ext4 writeback that could result in zeroing too much from the tail page during writeback.
Signed-off-by Jan Kara <[email protected]>
--- .gitignore | 1 + src/Makefile | 2 +- src/t_mmap_fallocate.c | 69 ++++++++++++++++++++++++++++++++++++++++++ tests/generic/438 | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++ tests/generic/438.out | 2 ++ tests/generic/group | 1 + 6 files changed, 156 insertions(+), 1 deletion(-) create mode 100644 src/t_mmap_fallocate.c create mode 100755 tests/generic/438 create mode 100644 tests/generic/438.out
.gitignore +1 -0
@@ -150,6 +150,7 @@ /src/t_mmap_dio /src/t_mmap_stale_pmd /src/t_mmap_cow_race +/src/t_mmap_fallocate # dmapi/ binaries /dmapi/src/common/cmd/read_invis
src/Makefile +1 -1
@@ -13,7 +13,7 @@ TARGETS = dirstress fill fill2 getpagesize holes lstat64 \ multi_open_unlink dmiperf unwritten_sync genhashnames t_holes \ t_mmap_writev t_truncate_cmtime dirhash_collide t_rename_overwrite \ holetest t_truncate_self t_mmap_dio af_unix t_mmap_stale_pmd \ - t_mmap_cow_race + t_mmap_cow_race t_mmap_fallocate LINUX_TARGETS = xfsctl bstat t_mtab getdevicesize preallo_rw_pattern_reader \ preallo_rw_pattern_writer ftrunc trunc fs_perms testx looptest \
src/t_mmap_fallocate.c new file +69 -0
69 lines not on this page · raw message
tests/generic/438 new file +82 -0
82 lines not on this page · raw message
tests/generic/438.out new file +2 -0
@@ -0,0 +1,2 @@ +QA output created by 438 +Silence is golden
tests/generic/group +1 -0
@@ -440,3 +440,4 @@ 435 auto encrypt 436 auto quick rw 437 auto quick +438 auto quick
Signature · 1 line
2.12.3