zpool events: describe zio_flags in verbose output
Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc.
This commit is contained in:
parent
e58be26bc6
commit
40c83b7b3a
|
@ -75,6 +75,7 @@
|
||||||
#include "zpool_util.h"
|
#include "zpool_util.h"
|
||||||
#include "zfs_comutil.h"
|
#include "zfs_comutil.h"
|
||||||
#include "zfeature_common.h"
|
#include "zfeature_common.h"
|
||||||
|
#include "zfs_pretty.h"
|
||||||
|
|
||||||
#include "statcommon.h"
|
#include "statcommon.h"
|
||||||
|
|
||||||
|
@ -10338,7 +10339,15 @@ zpool_do_events_nvprint(nvlist_t *nvl, int depth)
|
||||||
|
|
||||||
case DATA_TYPE_INT32:
|
case DATA_TYPE_INT32:
|
||||||
(void) nvpair_value_int32(nvp, (void *)&i32);
|
(void) nvpair_value_int32(nvp, (void *)&i32);
|
||||||
printf(gettext("0x%x"), i32);
|
if (strcmp(name,
|
||||||
|
FM_EREPORT_PAYLOAD_ZFS_ZIO_FLAGS) == 0) {
|
||||||
|
static char flagstr[512];
|
||||||
|
zfs_pretty_zio_flag_str(i32, flagstr,
|
||||||
|
sizeof (flagstr));
|
||||||
|
printf(gettext("0x%x [%s]"), i32, flagstr);
|
||||||
|
} else {
|
||||||
|
printf(gettext("0x%x"), i32);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DATA_TYPE_UINT32:
|
case DATA_TYPE_UINT32:
|
||||||
|
|
Loading…
Reference in New Issue