zstreamdump: include embedded writes when dumping raw data (-d)

When feeding a replication stream to `zstreamdump -d` (raw dump mode),
it does not print the raw data for DRR_WRITE_EMBEDDED records.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Signed-off-by: Allan Jude <allanjude@freebsd.org>
Closes #8430
This commit is contained in:
Allan Jude 2019-02-27 20:55:25 -05:00 committed by Brian Behlendorf
parent 6af7ba417e
commit d6838ae649
1 changed files with 4 additions and 0 deletions

View File

@ -679,6 +679,10 @@ main(int argc, char *argv[])
}
(void) ssread(buf,
P2ROUNDUP(drrwe->drr_psize, 8), &zc);
if (dump) {
print_block(buf,
P2ROUNDUP(drrwe->drr_psize, 8));
}
break;
case DRR_OBJECT_RANGE:
if (do_byteswap) {