mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
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
This commit is contained in:
committed by
Brian Behlendorf
parent
2b09628b59
commit
fb6e6f1ffb
@@ -754,7 +754,7 @@ function verify_stream_size
|
||||
datasetexists $ds || log_fail "No such dataset: $ds"
|
||||
|
||||
typeset stream_size=$(cat $stream | zstreamdump | sed -n \
|
||||
's/ Total write size = \(.*\) (0x.*)/\1/p')
|
||||
's/ Total payload size = \(.*\) (0x.*)/\1/p')
|
||||
|
||||
typeset inc_size=0
|
||||
if [[ -n $inc_src ]]; then
|
||||
|
||||
Reference in New Issue
Block a user