mirror_zfs/tests/zfs-tests/tests/functional/mmp
Olaf Faaland 34fe773e30 Skip import activity test in more zdb code paths
Since zdb opens the pools read-only, it cannot damage the pool in the
event the pool is already imported either on the same host or on
another one.

If the pool vdev structure is changing while zdb is importing the
pool, it may cause zdb to crash.  However this is unlikely, and in any
case it's a user space process and can simply be run again.

For this reason, zdb should disable the multihost activity test on
import that is normally run.

This commit fixes a few zdb code paths where that had been overlooked.
It also adds tests to ensure that several common use cases handle this
properly in the future.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Gu Zheng <guzheng2331314@163.com>
Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Closes #7797 
Closes #7801
2018-08-20 10:05:23 -07:00
..
cleanup.ksh Multi-modifier protection (MMP) 2017-07-13 13:54:00 -04:00
Makefile.am Skip import activity test in more zdb code paths 2018-08-20 10:05:23 -07:00
mmp_active_import.ksh Update mmp_delay on sync or skipped, failed write 2018-04-04 16:38:44 -07:00
mmp_exported_import.ksh Fix ZTS MMP tests and ztest -M behavior 2017-09-23 09:28:18 -07:00
mmp_inactive_import.ksh Fix ZTS MMP tests and ztest -M behavior 2017-09-23 09:28:18 -07:00
mmp_interval.ksh Multi-modifier protection (MMP) 2017-07-13 13:54:00 -04:00
mmp_on_off.ksh Multi-modifier protection (MMP) 2017-07-13 13:54:00 -04:00
mmp_on_thread.ksh Multi-modifier protection (MMP) 2017-07-13 13:54:00 -04:00
mmp_on_uberblocks.ksh Record skipped MMP writes in multihost_history 2018-03-06 15:15:15 -08:00
mmp_on_zdb.ksh Skip import activity test in more zdb code paths 2018-08-20 10:05:23 -07:00
mmp_reset_interval.ksh Record skipped MMP writes in multihost_history 2018-03-06 15:15:15 -08:00
mmp_write_uberblocks.ksh Record skipped MMP writes in multihost_history 2018-03-06 15:15:15 -08:00
mmp.cfg Update mmp_delay on sync or skipped, failed write 2018-04-04 16:38:44 -07:00
mmp.kshlib Update mmp_delay on sync or skipped, failed write 2018-04-04 16:38:44 -07:00
multihost_history.ksh Record skipped MMP writes in multihost_history 2018-03-06 15:15:15 -08:00
setup.ksh Multi-modifier protection (MMP) 2017-07-13 13:54:00 -04:00