]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs: test iomap zero range via fsx and error tag
authorBrian Foster <bfoster@redhat.com>
Thu, 7 Aug 2025 14:56:26 +0000 (10:56 -0400)
committerZorro Lang <zlang@kernel.org>
Tue, 12 Aug 2025 08:34:03 +0000 (16:34 +0800)
commit3e802fc7c387b06b1f64e09ed90aaa7f99bbb5a8
tree8a90eabd6b48a76143be19ba81d3eee8f1d08d7c
parent00dced3f673035b8522d20ebe7ab3b68de21d08a
xfs: test iomap zero range via fsx and error tag

iomap supports a zero range operation based on buffered writes. This
mechanism is used in limited spots, such as partial block zeroing,
etc., because usually for larger zeroing ops it is more efficient to
punch a hole and allocate unwritten extents.

This means iomap zero range has limited production test coverage
even though it has some particular corner cases that warrant test
coverage. XFS supports an error injection knob to force use of iomap
zero range on fallocate zero range operations. Add a test to run fsx
with this knob enabled to provide more zeroing test coverage.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/131 [new file with mode: 0755]
tests/xfs/131.out [new file with mode: 0644]