diff options
author | Brian Behlendorf <[email protected]> | 2020-06-06 12:51:35 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2020-06-06 12:51:35 -0700 |
commit | c1f3de18a4347c3aceee114e6681c2055e8863f8 (patch) | |
tree | f0915909e8d30a8b766bbaadc0e55677019a278f /lib/libspl | |
parent | 13dd63ff81e5c774a9ff9522e5dd008dac1fc150 (diff) |
ztest: Fix spa_open() ENOENT failures
The pool may not be imported when the previous pass is terminated.
In which case, spa_open() will return ENOENT to indicate the pool
is not currently imported. Refactor to code slightly to handle
this case by importing the pool and then retrying the spa_open().
The ztest_import() function was moved before ztest_run() and the
import logic split in to a small internal helper function. The
ztest_freeze() function was also moved but no changes were made.
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #10407
Diffstat (limited to 'lib/libspl')
0 files changed, 0 insertions, 0 deletions