Files
mirror_zfs/module/zfs
Olaf Faaland 3eb3a13628 Report pool suspended due to MMP
When the pool is suspended, record whether it was due to an I/O error or
due to MMP writes failing to succeed within the required time.

Change spa_suspended from uint8_t to zio_suspend_reason_t to store the
reason.

When userspace queries pool status via spa_tryimport(), report the
reason the pool was suspended in a new key,
ZPOOL_CONFIG_SUSPENDED_REASON.

In libzfs, when interpreting the returned config nvlist, report
suspension due to MMP with a new pool status enum value,
ZPOOL_STATUS_IO_FAILURE_MMP.

In status_callback(), which generates and emits the message when 'zpool
status' is executed, add a case to print an appropriate message for the
new pool status enum value.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Closes #7296
2018-05-07 17:19:56 -07:00
..
2018-01-30 10:27:31 -06:00
2018-03-14 16:10:37 -07:00
2015-01-16 14:41:26 -08:00
2017-05-26 11:42:10 -07:00
2017-06-26 14:36:49 -07:00
2018-01-30 10:27:31 -06:00
2015-01-16 14:41:26 -08:00
2017-11-21 13:11:29 -06:00
2017-07-13 13:54:00 -04:00
2015-01-16 14:41:26 -08:00
2017-07-13 13:54:00 -04:00
2018-05-07 17:19:56 -07:00
2016-04-21 09:49:25 -07:00
2017-01-03 11:31:18 -06:00
2010-08-31 13:41:58 -07:00
2018-05-07 17:19:56 -07:00
2018-05-07 17:19:56 -07:00
2017-07-13 13:54:00 -04:00
2018-01-30 10:27:30 -06:00
2016-11-29 14:34:33 -08:00
2018-05-07 17:19:56 -07:00
2010-08-31 13:41:58 -07:00
2017-03-10 09:51:33 -08:00
2017-03-10 09:51:33 -08:00
2017-01-03 11:31:18 -06:00
2017-08-08 10:17:33 -07:00
2017-03-29 12:24:51 -07:00
2018-05-07 17:19:56 -07:00
2018-03-14 16:10:36 -07:00
2017-03-10 09:51:33 -08:00
2018-01-30 10:27:31 -06:00
2017-01-23 10:35:58 -08:00