From: Allan Jude Date: Thu, 28 Feb 2019 01:55:25 +0000 (-0500) Subject: zstreamdump: include embedded writes when dumping raw data (-d) X-Git-Tag: zfs-0.8.0~152 X-Git-Url: https://git.proxmox.com/?p=mirror_zfs.git;a=commitdiff_plain;h=d6838ae649d7a369b5064f7ab1c016b39c26af68 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 Reviewed by: Matt Ahrens Signed-off-by: Allan Jude Closes #8430 --- diff --git a/cmd/zstreamdump/zstreamdump.c b/cmd/zstreamdump/zstreamdump.c index a2edefa92..a29964cdd 100644 --- a/cmd/zstreamdump/zstreamdump.c +++ b/cmd/zstreamdump/zstreamdump.c @@ -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) {