Skip to content

Commit be60aa7

Browse files
robnlundman
authored andcommitted
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 openzfs#16667
1 parent de70ef1 commit be60aa7

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
@@ -4267,6 +4267,10 @@ dump_uberblock(uberblock_t *ub, const char *header, const char *footer)
42674267
(void) printf("\ttimestamp = %llu UTC = %s",
42684268
(u_longlong_t)ub->ub_timestamp, ctime(&timestamp));
42694269

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

0 commit comments

Comments
 (0)