[PATCH xfstests 0/5] fstests: add fallocate write zeroes tests

From: Zhang Yi
Date: Tue Mar 18 2025 - 03:35:10 EST


From: Zhang Yi <yi.zhang@xxxxxxxxxx>

The Linux kernel is planning to support FALLOC_FL_WRITE_ZEROES in
fallocate(2). Add tests for the newly added fallocate
FALLOC_FL_WRITE_ZEROES command. This series depends on the changes to
xfs_io [1] that introduced the 'fwzero' command.

- generic/764 is an extension of generic/008, it is designed to test
page boundaries for fwzero.
- generic/765 is an extension of generic/009, it is designed to do
generic functions tests for fwzero.
- generic/766 is and extension of generic/349 and generic/351, it is
designed to test fwzero on raw block device.
- Finally, add FALLOC_FL_WRITE_ZEROES support for fstress and fsx.

[1] https://lore.kernel.org/linux-fsdevel/20250318072318.3502037-1-yi.zhang@xxxxxxxxxxxxxxx/

Thanks,
Yi.

Zhang Yi (5):
generic/764: add page boundaries tests for fallocate write zeroes
generic/765: add generic tests for fallocate write zeroes
generic/766: test fallocate write zeroes on block device
fstress: add fallocate write zeroes support
fsx: add fallocate write zeroes support

common/rc | 2 +-
ltp/fsstress.c | 12 ++
ltp/fsx.c | 80 ++++++++
src/global.h | 4 +
tests/generic/764 | 34 ++++
tests/generic/764.out | 433 ++++++++++++++++++++++++++++++++++++++++++
tests/generic/765 | 40 ++++
tests/generic/765.out | 269 ++++++++++++++++++++++++++
tests/generic/766 | 80 ++++++++
tests/generic/766.out | 23 +++
10 files changed, 976 insertions(+), 1 deletion(-)
create mode 100755 tests/generic/764
create mode 100644 tests/generic/764.out
create mode 100755 tests/generic/765
create mode 100644 tests/generic/765.out
create mode 100755 tests/generic/766
create mode 100644 tests/generic/766.out

--
2.46.1