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 <matt@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Allan Jude <allan@klarasystems.com>
Closes #10505
This commit is contained in:
Allan Jude 2020-06-27 13:29:47 -04:00 committed by GitHub
parent 270ece24b6
commit 3bc92b9ef6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");