diff options
author | Rob Norris <[email protected]> | 2024-10-21 04:01:49 +1100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-10-20 10:01:49 -0700 |
commit | b2f6de7b58f81a4894ba26d87865a15e6115a1c2 (patch) | |
tree | 2f231853c5a1ee8f069cc6e1f0f7fd62c9fd8510 /cmd | |
parent | a9851ea3dd6af6f789e221f2ccd7ad43561eff81 (diff) |
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
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/zdb/zdb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/zdb/zdb.c b/cmd/zdb/zdb.c index 16c702580..42b82c082 100644 --- a/cmd/zdb/zdb.c +++ b/cmd/zdb/zdb.c @@ -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)) { |