diff options
author | Brian Behlendorf <[email protected]> | 2013-07-10 15:13:09 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-07-10 15:15:52 -0700 |
commit | bf89c19914c66b030333460952dbdfabf9ff527e (patch) | |
tree | 826cb797a723cbf0fb9b1153f0411f2cc7c3a667 /module/zfs/zio.c | |
parent | abc41ac7c78c6f218a226a746f5d92a41fe53285 (diff) |
Log pool suspension warnings to the console
In the event that a pool gets suspended log this information to
the console. This is critical information and we want to make
sure it gets logged.
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #1555
Diffstat (limited to 'module/zfs/zio.c')
-rw-r--r-- | module/zfs/zio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/module/zfs/zio.c b/module/zfs/zio.c index 0bc19a7b7..1acb80139 100644 --- a/module/zfs/zio.c +++ b/module/zfs/zio.c @@ -1448,6 +1448,9 @@ zio_suspend(spa_t *spa, zio_t *zio) "failure and the failure mode property for this pool " "is set to panic.", spa_name(spa)); + cmn_err(CE_WARN, "Pool '%s' has encountered an uncorrectable I/O " + "failure and has been suspended.\n", spa_name(spa)); + zfs_ereport_post(FM_EREPORT_ZFS_IO_FAILURE, spa, NULL, NULL, 0, 0); mutex_enter(&spa->spa_suspend_lock); |