]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
generic: test to run fsx eof pollution
authorBrian Foster <bfoster@redhat.com>
Wed, 28 Aug 2024 18:15:34 +0000 (14:15 -0400)
committerZorro Lang <zlang@kernel.org>
Mon, 2 Sep 2024 20:12:14 +0000 (04:12 +0800)
commitfea26871799f2326626c7a78ba5548853c4b1159
tree5bbf319ca97d2ef7c8f3b1fabc94f701eac2a120
parent9e2b0f4c9579a74c940b4132d77ac6f59d3d8c4f
generic: test to run fsx eof pollution

Filesystem regressions related to partial page zeroing can go
unnoticed for a decent amount of time. A recent example is the issue
of iomap zero range not handling dirty pagecache over unwritten
extents, which leads to wrong behavior on certain file extending
operations (i.e. truncate, write extension, etc.).

fsx does occasionally uncover these sorts of problems, but failures
can be rare and/or require longer running tests outside what is
typically run via full fstests regression runs. fsx now supports a
mode that injects post-eof data in order to explicitly test partial
eof zeroing behavior. This uncovers certain problems more quickly
and applies coverage more broadly across size changing operations.

Add a new test that runs an fsx instance (modeled after generic/127)
with eof pollution mode enabled. While the test is generic, it is
currently limited to XFS as that is currently the only known major
fs that does enough zeroing to satisfy the strict semantics expected
by fsx. The long term goal is to uncover and fix issues so more
filesystems can enable this test.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/363 [new file with mode: 0755]
tests/generic/363.out [new file with mode: 0644]