From ce58fc178bd5c6e8d462c21f1b8952685d2f852d Mon Sep 17 00:00:00 2001 From: Tim Chase Date: Thu, 18 Sep 2014 15:17:21 -0500 Subject: [PATCH] Octdump the spill blkptr with 7-d. --- cmd/zdb/zdb.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/zdb/zdb.c b/cmd/zdb/zdb.c index c53f91df2107..da6fc6b61338 100644 --- a/cmd/zdb/zdb.c +++ b/cmd/zdb/zdb.c @@ -1881,6 +1881,11 @@ dump_object(objset_t *os, uint64_t object, int verbosity, int *print_header) char blkbuf[BP_SPRINTF_LEN]; snprintf_blkptr_compact(blkbuf, sizeof (blkbuf), &dn->dn_phys->dn_spill); (void) printf("\n\tSpill blkptr:\n\t\t%s\n", blkbuf); + if (verbosity >= 7) { + (void) printf("\tSpill blkptr dump: "); + octdump(&dn->dn_phys->dn_spill, sizeof (dn->dn_phys->dn_spill)); + (void) printf("\n"); + } } object_viewer[ZDB_OT_TYPE(doi.doi_bonus_type)](os, object, bonus, bsize);