Don't emit cksum_{actual_expected} in ereport.fs.zfs.checksum events
commitb6f618f8ffda435f5df9e185c999245842add93d
authorAlan Somers <asomers@FreeBSD.org>
Tue, 11 Jul 2023 21:13:57 +0000 (11 15:13 -0600)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 21 Jul 2023 23:35:12 +0000 (21 16:35 -0700)
tree64d87d300f6ae0f0ed7d63accd589ebba5b96f2a
parent51a2b597679f948d6102c0e0376ba2273d82818e
Don't emit cksum_{actual_expected} in ereport.fs.zfs.checksum events

With anything but fletcher-4, even a tiny change in the input will cause
the checksum value to change completely.  So knowing the actual and
expected checksums doesn't provide much more information than "they
don't match".  The harm in sending them is simply that they bloat the
event.  In particular, on FreeBSD the event must fit into a 1016 byte
buffer.

Fixes #14717 for mirrored pools.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Rich Ercolani <rincebrain@gmail.com>
Signed-off-by: Alan Somers <asomers@gmail.com>
Sponsored-by: Axcient
Closes #14717
Closes #15052
include/sys/fm/fs/zfs.h
include/sys/zio_checksum.h
man/man8/zpool-events.8
module/zfs/vdev_indirect.c
module/zfs/vdev_raidz.c
module/zfs/zfs_fm.c
module/zfs/zio_checksum.c