From 39554216dff2c8bd4a2fa296644b5e3723ce8ed3 Mon Sep 17 00:00:00 2001 From: Giuseppe Di Natale Date: Mon, 24 Jul 2017 11:10:25 -0700 Subject: [PATCH] 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 --- .../tests/functional/cli_root/zfs_mount/zfs_mount_011_neg.ksh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } -- 2.40.0