Skip to content

Commit

Permalink
zstreamdump: include embedded writes when dumping raw data (-d)
Browse files Browse the repository at this point in the history
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 openzfs#8430
  • Loading branch information
allanjude authored and behlendorf committed Feb 28, 2019
1 parent 6af7ba4 commit d6838ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/zstreamdump/zstreamdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d6838ae

Please sign in to comment.