From: Giuseppe Di Natale Date: Mon, 24 Jul 2017 18:10:25 +0000 (-0700) Subject: zfs_mount_001_neg: use log_must_busy in cleanup X-Git-Tag: zfs-0.7.0~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=39554216dff2c8bd4a2fa296644b5e3723ce8ed3;p=zfs 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 Reviewed-by: George Melikov Signed-off-by: Giuseppe Di Natale Closes #6382 --- diff --git a/tests/zfs-tests/tests/functional/cli_root/zfs_mount/zfs_mount_011_neg.ksh b/tests/zfs-tests/tests/functional/cli_root/zfs_mount/zfs_mount_011_neg.ksh index 795fc3114..a116b4647 100755 --- a/tests/zfs-tests/tests/functional/cli_root/zfs_mount/zfs_mount_011_neg.ksh +++ b/tests/zfs-tests/tests/functional/cli_root/zfs_mount/zfs_mount_011_neg.ksh @@ -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 }