svn commit: r275545 - vendor-sys/illumos/dist/uts/common/fs/zfs

Xin LI delphij at FreeBSD.org
Sat Dec 6 00:34:26 UTC 2014


Author: delphij
Date: Sat Dec  6 00:34:25 2014
New Revision: 275545
URL: https://svnweb.freebsd.org/changeset/base/275545

Log:
  5348 zio_checksum_error() only fills in info if ECKSUM
  Reviewed by: Alex Reece <alex.reece at delphix.com>
  Reviewed by: Christopher Siden <christopher.siden at delphix.com>
  Reviewed by: George Wilson <george.wilson at delphix.com>
  Reviewed by: Steven Hartland <killing at multiplay.co.uk>
  Approved by: Dan McDonald <danmcd at omniti.com>
  Author: Matthew Ahrens <mahrens at delphix.com>
  
  illumos/illumos-gate at 373dc1cf9a4e0791397a9b268cdac1f664af58a8

Modified:
  vendor-sys/illumos/dist/uts/common/fs/zfs/zio.c

Modified: vendor-sys/illumos/dist/uts/common/fs/zfs/zio.c
==============================================================================
--- vendor-sys/illumos/dist/uts/common/fs/zfs/zio.c	Sat Dec  6 00:33:09 2014	(r275544)
+++ vendor-sys/illumos/dist/uts/common/fs/zfs/zio.c	Sat Dec  6 00:34:25 2014	(r275545)
@@ -2817,7 +2817,8 @@ zio_checksum_verify(zio_t *zio)
 
 	if ((error = zio_checksum_error(zio, &info)) != 0) {
 		zio->io_error = error;
-		if (!(zio->io_flags & ZIO_FLAG_SPECULATIVE)) {
+		if (error == ECKSUM &&
+		    !(zio->io_flags & ZIO_FLAG_SPECULATIVE)) {
 			zfs_ereport_start_checksum(zio->io_spa,
 			    zio->io_vd, zio, zio->io_offset,
 			    zio->io_size, NULL, &info);


More information about the svn-src-all mailing list