Skip to content

Commit

Permalink
Dump the spill blkptr in verbose >= 6.
Browse files Browse the repository at this point in the history
  • Loading branch information
dweeezil committed Sep 15, 2014
1 parent 495b189 commit 277a0f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/zdb/zdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1884,6 +1884,12 @@ dump_object(objset_t *os, uint64_t object, int verbosity, int *print_header)
*print_header = 1;
}

if (verbosity >= 6 && (dn->dn_phys->dn_flags & DNODE_FLAG_SPILL_BLKPTR)) {
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 >= 5)
dump_indirect(dn);

Expand Down

0 comments on commit 277a0f7

Please sign in to comment.