]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: various atomic write tests with hardware and scsi_debug
authorDarrick J. Wong <djwong@kernel.org>
Thu, 26 Jun 2025 00:27:34 +0000 (17:27 -0700)
committerZorro Lang <zlang@kernel.org>
Thu, 10 Jul 2025 21:15:37 +0000 (05:15 +0800)
commitfa8694c823d853079775fe9cc327a595a40fe6b6
tree3eaea893884801f456a8fe1c61fe055e1c23ffb8
parent8d87273e43f1cb1bf2542697056c1f6461c399a0
generic: various atomic write tests with hardware and scsi_debug

Simple tests of various atomic write requests and a (simulated) hardware
device.

The first test performs basic multi-block atomic writes on a scsi_debug device
with atomic writes enabled. We test all advertised sizes between the atomic
write unit min and max. We also ensure that the write fails when expected, such
as when attempting buffered io or unaligned directio.

The second test is similar to the one above, except that it verifies multi-block
atomic writes on actual hardware instead of simulated hardware. The device used
in this test is not required to support atomic writes.

The final two tests ensure multi-block atomic writes can be performed on various
interweaved mappings, including written, mapped, hole, and unwritten. We also
test large atomic writes on a heavily fragmented filesystem. These tests are
separated into reflink (shared) and non-reflink tests.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Catherine Hoang <catherine.hoang@oracle.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/atomicwrites
tests/generic/767 [new file with mode: 0755]
tests/generic/767.out [new file with mode: 0644]
tests/generic/768 [new file with mode: 0755]
tests/generic/768.out [new file with mode: 0644]
tests/generic/769 [new file with mode: 0755]
tests/generic/769.out [new file with mode: 0644]
tests/generic/770 [new file with mode: 0755]
tests/generic/770.out [new file with mode: 0644]