zfs/tests/zfs-tests/include
Rob Norris 1f8c39ddb2 ZTS: test response of various sync methods under different failmodes
These are all the same shape: set up the pool to suspend on first write,
then perform some write+sync operation. The pool should suspend, and the
sync operation should respond according to the failmode= property.

We test fsync(), msync() and two forms of write() (open with O_SYNC, and
async with sync=always), which all take slightly different paths to
zil_commit() and back.

A helper function is included to do the write+sync sequence with mmap()
and msync(), since I didn't find a convenient tool to do that.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #17398
2025-08-08 16:42:35 -07:00
..
.gitignore Add zpool events tests 2017-05-22 12:34:42 -04:00
blkdev.shlib SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
commands.cfg ZTS: test response of various sync methods under different failmodes 2025-08-08 16:42:35 -07:00
default.cfg.in SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
kstat.shlib SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
libtest.shlib ZTS: include microsecond timestamps on all output 2025-08-06 09:44:49 -07:00
math.shlib SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
properties.shlib SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
tunables.cfg Add TXG timestamp database 2025-08-06 10:31:21 -07:00
zpool_script.shlib tests: review every awk(1) invocation 2022-04-01 17:57:55 -07:00