Skip to content

Commit

Permalink
Log pool suspension warnings to the console
Browse files Browse the repository at this point in the history
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 openzfs#1555
  • Loading branch information
behlendorf authored and unya committed Dec 13, 2013
1 parent ba18303 commit 99bfed9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions module/zfs/zio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1490,6 +1490,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);
Expand Down

0 comments on commit 99bfed9

Please sign in to comment.