Skip to content

Commit

Permalink
ZTS: Fix import_devices_missing.ksh
Browse files Browse the repository at this point in the history
Related to commit 90b77a0.  Retry the `zpool export` if the pool
is "busy" indicating there is a process accessing the mount point.
This can happen after an import, allowing it to be retried will
avoid spurious test failures.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes openzfs#13169
  • Loading branch information
behlendorf authored and andrewc12 committed Sep 23, 2022
1 parent 7d6c81a commit dd6acb8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function test_devices_missing

log_must generate_data $TESTPOOL1 $MD5FILE2 "second"

log_must zpool export $TESTPOOL1
log_must_busy zpool export $TESTPOOL1

log_must mv $missingvdevs $BACKUP_DEVICE_DIR

Expand All @@ -85,7 +85,7 @@ function test_devices_missing
"get suspended."
verify_data_md5sums $MD5FILE >/dev/null 2>&1

log_must zpool export $TESTPOOL1
log_must_busy zpool export $TESTPOOL1

typeset newpaths=$(echo "$missingvdevs" | \
sed "s:$DEVICE_DIR:$BACKUP_DEVICE_DIR:g")
Expand Down

0 comments on commit dd6acb8

Please sign in to comment.