Log pool suspension warnings to the console
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 10 Jul 2013 22:13:09 +0000 (15:13 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 10 Jul 2013 22:15:52 +0000 (15:15 -0700)
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 <behlendorf1@llnl.gov>
Closes #1555

module/zfs/zio.c

index 0bc19a7..1acb801 100644 (file)
@@ -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);