Skip to content

Commit

Permalink
ZTS: Fix checkpoint_ro_rewind.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 and allowing it to be retried will avoid
spurious test failures.

Reviewed by: George Melikov <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13092
  • Loading branch information
behlendorf authored and tonyhutter committed Feb 16, 2022
1 parent db0a37b commit 5e0c37f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ populate_test_pool
log_must zpool checkpoint $TESTPOOL
test_change_state_after_checkpoint

log_must zpool export $TESTPOOL
log_must_busy zpool export $TESTPOOL
log_must zpool import -o readonly=on --rewind-to-checkpoint $TESTPOOL

test_verify_pre_checkpoint_state "ro-check"

log_must zpool export $TESTPOOL
log_must_busy zpool export $TESTPOOL
log_must zpool import $TESTPOOL

test_verify_post_checkpoint_state
Expand Down

0 comments on commit 5e0c37f

Please sign in to comment.