mirror_zfs/tests/zfs-tests
Rob Norris 26e38aec46 zinject: add "probe" device injection type
Injecting a device probe failure is not possible by matching IO types,
because probe IO goes to the label regions, which is explicitly excluded
from injection. Even if it were possible, it would be awkward to do,
because a probe is sequence of reads and writes.

This commit adds a new IO "type" to match for injection, which looks for
the ZIO_FLAG_PROBE flag instead. Any probe IO will be match the
injection record and recieve the wanted error.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16947
2025-01-22 16:13:21 -08:00
..
callbacks Split functional testings via github action matrix 2023-03-15 10:41:05 -07:00
cmd tests: fix uClibc for getversion.c 2024-11-14 16:56:12 -08:00
include ZTS: remove get_arcstat 2025-01-21 10:13:12 -08:00
tests zinject: add "probe" device injection type 2025-01-22 16:13:21 -08:00
.gitignore autoconf: use include directives instead of recursing down cmd 2022-05-10 10:18:38 -07:00
Makefile.am ZTS: reimplement kstat helper function 2025-01-21 10:12:07 -08:00