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
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
}