HomeFreeBSD

zinject: show more device fault fields

Description

zinject: show more device fault fields

Once there's a few different kinds injected, its pretty hard to see them
otherwise.

So, lets show IO type, error type and frequency fields in the table too.

Since we now have to convert from error code to pretty string, refactor
the error names into a table and add lookup functions.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #15953

Details

Provenance
rob.norris_klarasystems.comAuthored on Feb 29 2024, 11:38 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Apr 3 2024, 11:06 PM
Parents
rGca678bc0bc83: Makefile.bsd: sort and cleanup source file list
Branches
Unknown
Tags
Unknown