MFV r275545:
If zio_checksum_error() returns other than ECKSUM (e.g. EINVAL), it does not fill in the "zio_bad_cksum_t *info" parameter. Caller should not attempt to use it in this case. Illumos issue: 5348 zio_checksum_error() only fills in info if ECKSUM MFC after: 2 weeks
This commit is contained in:
commit
8b2dbf8af3
@ -2958,7 +2958,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);
|
||||
|
Loading…
Reference in New Issue
Block a user