]> granicus.if.org Git - zfs/commitdiff
zfs_mount_001_neg: use log_must_busy in cleanup
authorGiuseppe Di Natale <dinatale2@users.noreply.github.com>
Mon, 24 Jul 2017 18:10:25 +0000 (11:10 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 24 Jul 2017 18:10:25 +0000 (11:10 -0700)
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

tests/zfs-tests/tests/functional/cli_root/zfs_mount/zfs_mount_011_neg.ksh

index 795fc3114205b0f5a117821408291ff62515e3ca..a116b4647c093bfaee728306d4e299b2a55666ff 100755 (executable)
@@ -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
 }