]> git.proxmox.com Git - mirror_zfs.git/commit
zstreamdump: add per-record-type counters and an overhead counter
authorAllan Jude <allanjude@freebsd.org>
Sat, 22 Jun 2019 23:33:44 +0000 (19:33 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 22 Jun 2019 23:33:44 +0000 (16:33 -0700)
commitfb6e6f1ffb2aa18711c8c3c825c1090bd97561f0
tree0966b1caf146dd7f8f794f8dbc5a282b141e3e95
parent2b09628b59105a2b8da92f6db8da24c07e54ecb9
zstreamdump: add per-record-type counters and an overhead counter

Count the bytes of payload for each replication record type

Count the bytes of overhead (replication records themselves)

Include these counters in the output summary at the end of the run.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Matt Ahrens <mahrens@delphix.com>
Signed-off-by: Allan Jude <allanjude@freebsd.org>
Sponsored-By: Klara Systems and Catalogic
Closes #8432
cmd/zstreamdump/zstreamdump.c
tests/zfs-tests/tests/functional/rsend/rsend.kshlib