From 3bc92b9ef6557efae00d37320db2548ec9bc0a56 Mon Sep 17 00:00:00 2001 From: Allan Jude Date: Sat, 27 Jun 2020 13:29:47 -0400 Subject: Make zstreamdump output the size of the payload for BEGIN records This is helpful for determining the size of the nvlist of snapshots and properties Reviewed-by: Matt Ahrens Reviewed-by: Brian Behlendorf Signed-off-by: Allan Jude Closes #10505 --- cmd/zstream/zstream_dump.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd/zstream') diff --git a/cmd/zstream/zstream_dump.c b/cmd/zstream/zstream_dump.c index 62a1d8272..45cf7b97a 100644 --- a/cmd/zstream/zstream_dump.c +++ b/cmd/zstream/zstream_dump.c @@ -378,6 +378,8 @@ zstream_do_dump(int argc, char *argv[]) (void) printf("\tfromguid = %llx\n", (u_longlong_t)drrb->drr_fromguid); (void) printf("\ttoname = %s\n", drrb->drr_toname); + (void) printf("\tpayloadlen = %u\n", + drr->drr_payloadlen); if (verbose) (void) printf("\n"); -- cgit v1.2.3