]> git.proxmox.com Git - mirror_zfs.git/commit
zinject: show more device fault fields
authorRob Norris <rob.norris@klarasystems.com>
Thu, 29 Feb 2024 23:38:41 +0000 (10:38 +1100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 3 Apr 2024 23:06:19 +0000 (16:06 -0700)
commitfa480fe5bacceae940608860bd06d94be104cbb4
tree45809b9cd9d129b7c292f0e4d13f5314bc83e8a5
parentca678bc0bc8347610d34c39a5a2322be45b11093
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
cmd/zinject/zinject.c