Skip to content

Commit b2f6de7

Browse files
authored
zdb: show bp in uberblock dump
Just another useful nugget of info in times of strife. Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: George Melikov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tino Reichardt <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #16667
1 parent a9851ea commit b2f6de7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/zdb/zdb.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4266,6 +4266,10 @@ dump_uberblock(uberblock_t *ub, const char *header, const char *footer)
42664266
(void) printf("\ttimestamp = %llu UTC = %s",
42674267
(u_longlong_t)ub->ub_timestamp, ctime(&timestamp));
42684268

4269+
char blkbuf[BP_SPRINTF_LEN];
4270+
snprintf_blkptr(blkbuf, sizeof (blkbuf), &ub->ub_rootbp);
4271+
(void) printf("\tbp = %s\n", blkbuf);
4272+
42694273
(void) printf("\tmmp_magic = %016llx\n",
42704274
(u_longlong_t)ub->ub_mmp_magic);
42714275
if (MMP_VALID(ub)) {

0 commit comments

Comments
 (0)