Files
mirror_zfs/module/zfs
Olaf Faaland cec3a0a1bb 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-03-15 10:56:55 -07:00
..
2017-11-18 14:08:00 -08:00
2018-02-23 08:50:06 -08:00
2015-01-16 14:41:26 -08:00
2017-08-14 10:36:48 -07:00
2017-06-26 14:36:49 -07:00
2015-01-16 14:41:26 -08:00
2017-11-15 17:27:01 -08:00
2018-02-13 14:54:54 -08:00
2018-02-13 14:54:54 -08:00
2018-02-08 15:28:18 -08:00
2018-02-13 14:54:54 -08:00
2017-08-14 10:36:48 -07:00
2018-02-13 14:54:54 -08:00
2018-03-09 13:37:15 -08:00
2017-10-11 16:54:48 -04:00
2015-01-16 14:41:26 -08:00
2018-03-09 13:37:15 -08:00
2017-11-15 17:27:01 -08:00
2018-03-15 10:56:55 -07:00
2016-04-21 09:49:25 -07:00
2018-03-15 10:53:58 -07:00
2018-03-15 10:53:58 -07:00
2018-03-15 10:53:58 -07:00
2018-03-15 10:53:58 -07:00
2017-11-15 17:27:01 -08:00
2017-01-03 11:31:18 -06:00
2018-02-13 14:54:54 -08:00
2018-03-15 10:53:58 -07:00
2010-08-31 13:41:58 -07:00
2018-03-15 10:56:55 -07:00
2018-03-15 10:56:55 -07:00
2017-07-13 13:54:00 -04:00
2016-11-29 14:34:33 -08:00
2018-03-13 10:43:14 -07:00
2018-02-08 15:28:18 -08:00
2018-02-13 14:54:54 -08:00
2010-08-31 13:41:58 -07:00
2018-02-13 14:54:54 -08:00
2017-03-10 09:51:33 -08:00
2018-03-13 10:45:55 -07:00
2018-02-13 14:54:54 -08:00
2018-02-13 14:54:54 -08:00
2017-01-03 11:31:18 -06:00
2018-02-13 14:54:54 -08:00
2018-02-13 14:54:54 -08:00
2018-03-09 13:37:15 -08:00
2018-03-15 10:56:55 -07:00
2018-02-09 10:08:05 -08:00
2018-02-13 14:54:54 -08:00
2017-11-18 14:08:00 -08:00