zfs_mount_001_neg: use log_must_busy in cleanup

Use log_must_busy when destroying the snapshot
and dataset during cleanup in zfs_mount_001_neg.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #6382
This commit is contained in:
Giuseppe Di Natale 2017-07-24 11:10:25 -07:00 committed by Brian Behlendorf
parent 0c656a964d
commit 39554216df

View File

@ -46,11 +46,11 @@ verify_runnable "both"
function cleanup
{
if snapexists $TESTPOOL/$TESTFS@$TESTSNAP; then
log_must zfs destroy $TESTPOOL/$TESTFS@$TESTSNAP
log_must_busy zfs destroy $TESTPOOL/$TESTFS@$TESTSNAP
fi
if is_global_zone && datasetexists $TESTPOOL/$TESTVOL; then
log_must zfs destroy $TESTPOOL/$TESTVOL
log_must_busy zfs destroy $TESTPOOL/$TESTVOL
fi
}