ZTS: zhack_metaslab_leak.ksh busy export
If the pool is active 'zpool export' will fail resulting in a test failure. Swap log_must with log_must_busy so the export is retried when reported as busy before failing the test. Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #18512
This commit is contained in:
@@ -31,7 +31,7 @@ verify_runnable "global"
|
||||
|
||||
function cleanup
|
||||
{
|
||||
zpool destroy $TESTPOOL
|
||||
destroy_pool $TESTPOOL
|
||||
rm $tmp
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ log_must eval "zdb -m --allocated-map $TESTPOOL > $tmp"
|
||||
log_must zpool destroy $TESTPOOL
|
||||
|
||||
log_must zpool create $TESTPOOL $DISKS
|
||||
log_must zpool export $TESTPOOL
|
||||
log_must_busy zpool export $TESTPOOL
|
||||
log_must eval "zhack metaslab leak $TESTPOOL < $tmp"
|
||||
log_must zpool import $TESTPOOL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user