]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
zinject: "no-op" error injection
authorRob N <rob.norris@klarasystems.com>
Mon, 15 Apr 2024 20:52:20 +0000 (06:52 +1000)
committerGitHub <noreply@github.com>
Mon, 15 Apr 2024 20:52:20 +0000 (13:52 -0700)
commit4725e543be32f74d3a0a46ce3bb5c8e89280b471
treef78a9a12284cf26a76ba7b564763c7e9a0ddbba3
parentf22b110f60d83f62b75d20fabb0968ab74324778
zinject: "no-op" error injection

When injected, this causes the matching IO to appear to succeed, but the
actual work is never submitted to the physical device. This can be used
to simulate a write-back cache servicing a write, but the backing device
has failed and the cache cannot complete the operation in the
background.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16085
cmd/zinject/zinject.c
man/man8/zinject.8
module/zfs/zio.c
tests/zfs-tests/tests/functional/cli_root/zinject/zinject_args.ksh