Generate zevents for speculative and soft errors
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 27 Sep 2010 23:55:05 +0000 (16:55 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 12 Oct 2010 21:55:00 +0000 (14:55 -0700)
commit312c07edfdbdbabfab7f721797bba8eade5dcdeb
treeb74260aa669a021f23941b006e55a9e058ca45e1
parentd148e95156b98ac226013d24962d1afa4a51c712
Generate zevents for speculative and soft errors

By default the Solaris code does not log speculative or soft io errors
in either 'zpool status' or post an event.  Under Linux we don't want
to change the expected behavior of 'zpool status' so these io errors
are still suppressed there.

However, since we do need to know about these events for Linux FMA and
the 'zpool events' interface is new we do post the events.  With the
addition of the zio_flags field the posted events now contain enough
information that a user space consumer can identify and discard these
events if it sees fit.
include/sys/fm/fs/zfs.h
module/zfs/zfs_fm.c