diff options
author | Allan Jude <[email protected]> | 2019-02-27 20:55:25 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-02-27 17:55:25 -0800 |
commit | d6838ae649d7a369b5064f7ab1c016b39c26af68 (patch) | |
tree | de6f23a276e2f2aac21953f65d0acdd3d0b3e7c7 /cmd/zstreamdump | |
parent | 6af7ba417eb429413f9f24cd2704a302d766d9b4 (diff) |
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 <[email protected]>
Reviewed by: Matt Ahrens <[email protected]>
Signed-off-by: Allan Jude <[email protected]>
Closes #8430
Diffstat (limited to 'cmd/zstreamdump')
-rw-r--r-- | cmd/zstreamdump/zstreamdump.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |