Skip to contentSkip to conversation

generic: Add regression test for tail page zeroing

PATCH New Jan Kara 1 participant 1 message May 29, 2017

lore
Share & tools
lore

Jan Kara

author
#0 lore raw

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.

---
 .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
index a6ac25e828da..39664b0a7f53 100644
@@ -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
index 47246622ce7f..adbfd286fe89 100644
@@ -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
new file mode 100644
index 000000000000..4968f4d7f691
@@ -0,0 +1,2 @@
+QA output created by 438
+Silence is golden
tests/generic/group +1 -0
index 438c299030f2..d88f5bb44514 100644
@@ -440,3 +440,4 @@
 435 auto encrypt
 436 auto quick rw
 437 auto quick
+438 auto quick
Signature · 1 line
2.12.3