zfs/lib
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
..
libavl Support -fsanitize=address with --enable-asan 2018-01-10 10:49:27 -08:00
libefi Support -fsanitize=address with --enable-asan 2018-01-10 10:49:27 -08:00
libicp Support -fsanitize=address with --enable-asan 2018-01-10 10:49:27 -08:00
libnvpair Support -fsanitize=address with --enable-asan 2018-01-10 10:49:27 -08:00
libshare Support -fsanitize=address with --enable-asan 2018-01-10 10:49:27 -08:00
libspl zpool import -d to specify device path 2018-01-26 10:49:46 -08:00
libtpool Support -fsanitize=address with --enable-asan 2018-01-10 10:49:27 -08:00
libunicode Support -fsanitize=address with --enable-asan 2018-01-10 10:49:27 -08:00
libuutil Support -fsanitize=address with --enable-asan 2018-01-10 10:49:27 -08:00
libzfs Report pool suspended due to MMP 2018-03-15 10:56:55 -07:00
libzfs_core OpenZFS 8677 - Open-Context Channel Programs 2018-02-08 16:05:57 -08:00
libzpool Increase code coverage for Lua libraries 2018-02-08 15:29:38 -08:00
Makefile.am Add libtpool (thread pools) 2017-08-09 15:31:08 -07:00