ZTS: zvol_misc_trim retry busy export

Retry the export if the pool is busy due to an open zvol.
Observed in the CI on Fedora 37.

  cannot export 'testpool': pool is busy
  ERROR: zpool export testpool exited 1

Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #14769
This commit is contained in:
Brian Behlendorf 2023-04-20 10:25:16 -07:00 committed by GitHub
parent 3e4ed4213d
commit a10c645616
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,12 +125,12 @@ log_must $trimcmd $zvolpath
set_blk_mq 1
log_must zpool export $TESTPOOL
log_must_busy zpool export $TESTPOOL
log_must zpool import $TESTPOOL
do_test
set_blk_mq 0
log_must zpool export $TESTPOOL
log_must_busy zpool export $TESTPOOL
log_must zpool import $TESTPOOL
do_test