mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
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:
parent
0c656a964d
commit
39554216df
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user