mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 11:29:36 +03:00
fix zstreamdump -C
zstreamdump -C always fails. It is not calculating the checksums, but it's still trying to verify that the (non-calculated) checksum matches the one stored in the send stream. This change makes zstreamdump -C not verify checksums. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matthew Ahrens <mahrens@delphix.com> Closes #9983
This commit is contained in:
parent
2adc6b35ae
commit
f49b7a0d8e
@ -117,7 +117,8 @@ read_hdr(dmu_replay_record_t *drr, zio_cksum_t *cksum)
|
|||||||
sizeof (zio_cksum_t), cksum);
|
sizeof (zio_cksum_t), cksum);
|
||||||
if (r == 0)
|
if (r == 0)
|
||||||
return (0);
|
return (0);
|
||||||
if (!ZIO_CHECKSUM_IS_ZERO(&drr->drr_u.drr_checksum.drr_checksum) &&
|
if (do_cksum &&
|
||||||
|
!ZIO_CHECKSUM_IS_ZERO(&drr->drr_u.drr_checksum.drr_checksum) &&
|
||||||
!ZIO_CHECKSUM_EQUAL(saved_cksum,
|
!ZIO_CHECKSUM_EQUAL(saved_cksum,
|
||||||
drr->drr_u.drr_checksum.drr_checksum)) {
|
drr->drr_u.drr_checksum.drr_checksum)) {
|
||||||
fprintf(stderr, "invalid checksum\n");
|
fprintf(stderr, "invalid checksum\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user