summaryrefslogtreecommitdiffstats
path: root/cddl
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2015-09-14 06:10:49 +0000
committerdelphij <delphij@FreeBSD.org>2015-09-14 06:10:49 +0000
commit15c18a3cba2d0bc8f705f9f03d94d405cb21614d (patch)
tree8baf906e378a4213a873b07babcab0d037436362 /cddl
parent0187024b8d77afba20232aa7a8c895a30fd13cd2 (diff)
downloadFreeBSD-src-15c18a3cba2d0bc8f705f9f03d94d405cb21614d.zip
FreeBSD-src-15c18a3cba2d0bc8f705f9f03d94d405cb21614d.tar.gz
MFV r286224: 5695 dmu_sync'ed holes do not retain birth time
(userland portion that was not merged in r286677) Update zdb to also print ltime, type, and level information for these new style holes. Previously, only the logical birth time would be printed.
Diffstat (limited to 'cddl')
-rw-r--r--cddl/contrib/opensolaris/cmd/zdb/zdb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cddl/contrib/opensolaris/cmd/zdb/zdb.c b/cddl/contrib/opensolaris/cmd/zdb/zdb.c
index 4f5c372..7f25880 100644
--- a/cddl/contrib/opensolaris/cmd/zdb/zdb.c
+++ b/cddl/contrib/opensolaris/cmd/zdb/zdb.c
@@ -1205,7 +1205,9 @@ snprintf_blkptr_compact(char *blkbuf, size_t buflen, const blkptr_t *bp)
if (BP_IS_HOLE(bp)) {
(void) snprintf(blkbuf + strlen(blkbuf),
- buflen - strlen(blkbuf), "B=%llu",
+ buflen - strlen(blkbuf),
+ "%llxL B=%llu",
+ (u_longlong_t)BP_GET_LSIZE(bp),
(u_longlong_t)bp->blk_birth);
} else {
(void) snprintf(blkbuf + strlen(blkbuf),
OpenPOWER on IntegriCloud