mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Do not resume a pool if multihost is enabled
When multihost is enabled, and a pool is suspended, return EINVAL in response to "zpool clear <pool>". The pool may have been imported on another host while I/O was suspended. Reviewed-by: loli10K <ezomori.nozomu@gmail.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Olaf Faaland <faaland1@llnl.gov> Closes #6933 Closes #8460
This commit is contained in:
committed by
Brian Behlendorf
parent
4f3218aed8
commit
8133679ff0
@@ -2763,6 +2763,13 @@ ztest_mmp_enable_disable(ztest_ds_t *zd, uint64_t id)
|
||||
if (zo->zo_mmp_test)
|
||||
return;
|
||||
|
||||
/*
|
||||
* Since enabling MMP involves setting a property, it could not be done
|
||||
* while the pool is suspended.
|
||||
*/
|
||||
if (spa_suspended(spa))
|
||||
return;
|
||||
|
||||
spa_config_enter(spa, SCL_CONFIG, FTAG, RW_READER);
|
||||
mutex_enter(&spa->spa_props_lock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user