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:
Brian Behlendorf
2026-05-13 16:34:35 -07:00
committed by GitHub
parent f5733f6fa3
commit 3e5713771d
@@ -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