]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Make zstreamdump output the size of the payload for BEGIN records
authorAllan Jude <allan@klarasystems.com>
Sat, 27 Jun 2020 17:29:47 +0000 (13:29 -0400)
committerGitHub <noreply@github.com>
Sat, 27 Jun 2020 17:29:47 +0000 (10:29 -0700)
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

cmd/zstream/zstream_dump.c

index 62a1d8272cbce785d18d10f2325e5d7309ab30a2..45cf7b97a147204fa13326d67567c11fa5a8a21b 100644 (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");