mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
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
This commit is contained in:
1 parent
a9851ea3dd
commit
b2f6de7b58
1 file changed
+4
@@ -4266,6 +4266,10 @@ dump_uberblock(uberblock_t *ub, const char *header, const char *footer)
|
||||
(void) printf("\ttimestamp = %llu UTC = %s",
|
||||
(u_longlong_t)ub->ub_timestamp, ctime(×tamp));
|
||||
|
||||
char blkbuf[BP_SPRINTF_LEN];
|
||||
snprintf_blkptr(blkbuf, sizeof (blkbuf), &ub->ub_rootbp);
|
||||
(void) printf("\tbp = %s\n", blkbuf);
|
||||
|
||||
(void) printf("\tmmp_magic = %016llx\n",
|
||||
(u_longlong_t)ub->ub_mmp_magic);
|
||||
if (MMP_VALID(ub)) {
|
||||
|
||||
Reference in new issue
Block a user