diff options
author | Olaf Faaland <[email protected]> | 2018-08-20 10:05:23 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-08-20 10:05:23 -0700 |
commit | 34fe773e303e499e6a6e5fcd2ceeee4531579dab (patch) | |
tree | 2871fe497c6ce4ee775411d13f8b5d011564e8bf /module | |
parent | edc05fdb34792e65508ac2ff91c58828b44f19b1 (diff) |
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 <[email protected]>
Reviewed-by: Gu Zheng <[email protected]>
Signed-off-by: Olaf Faaland <[email protected]>
Closes #7797
Closes #7801
Diffstat (limited to 'module')
0 files changed, 0 insertions, 0 deletions