Skip to content

Commit 373dc1c

Browse files
ahrensChristopher Siden
authored andcommitted
5348 zio_checksum_error() only fills in info if ECKSUM
Reviewed by: Alex Reece <alex.reece@delphix.com> Reviewed by: Christopher Siden <christopher.siden@delphix.com> Reviewed by: George Wilson <george.wilson@delphix.com> Reviewed by: Steven Hartland <killing@multiplay.co.uk> Approved by: Dan McDonald <danmcd@omniti.com>
1 parent e651831 commit 373dc1c

File tree

1 file changed

+2
-1
lines changed
  • usr/src/uts/common/fs/zfs

1 file changed

+2
-1
lines changed

usr/src/uts/common/fs/zfs/zio.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2817,7 +2817,8 @@ zio_checksum_verify(zio_t *zio)
28172817

28182818
if ((error = zio_checksum_error(zio, &info)) != 0) {
28192819
zio->io_error = error;
2820-
if (!(zio->io_flags & ZIO_FLAG_SPECULATIVE)) {
2820+
if (error == ECKSUM &&
2821+
!(zio->io_flags & ZIO_FLAG_SPECULATIVE)) {
28212822
zfs_ereport_start_checksum(zio->io_spa,
28222823
zio->io_vd, zio, zio->io_offset,
28232824
zio->io_size, NULL, &info);

0 commit comments

Comments
 (0)