'zfs_create_013_pos']
# DISABLED:
-# zfs_destroy_001_pos - busy mountpoint behavior
# zfs_destroy_005_neg - busy mountpoint behavior
# zfs_destroy_008_pos - busy mountpoint behavior
# zfs_destroy_009_pos - busy mountpoint behavior
# zfs_destroy_012_pos - busy mountpoint behavior
# zfs_destroy_013_neg - busy mountpoint behavior
[tests/functional/cli_root/zfs_destroy]
-tests = ['zfs_destroy_002_pos', 'zfs_destroy_003_pos', 'zfs_destroy_004_pos',
- 'zfs_destroy_006_neg', 'zfs_destroy_007_neg', 'zfs_destroy_014_pos',
- 'zfs_destroy_015_pos', 'zfs_destroy_016_pos']
+tests = ['zfs_destroy_001_pos', 'zfs_destroy_002_pos', 'zfs_destroy_003_pos',
+ 'zfs_destroy_004_pos', 'zfs_destroy_006_neg', 'zfs_destroy_007_neg',
+ 'zfs_destroy_014_pos', 'zfs_destroy_015_pos', 'zfs_destroy_016_pos']
# DISABLED:
# zfs_get_004_pos - nested pools
"(pidlist: $pidlist)"
[[ -z $pidlist ]] && \
log_fail "Failure from $MKBUSY"
- log_must $ZFS destroy -rR $dtst
+ log_must_busy $ZFS destroy -rR $dtst
log_must $ZFS snapshot $dtst
fi
;;
log_note "$MKBUSY $mpt_dir (pidlist: $pidlist)"
[[ -z $pidlist ]] && \
log_fail "Failure from $MKBUSY"
- log_must $ZFS destroy -rR $dtst
- log_must $ZFS snapshot $dtst
+ if is_linux ; then
+ log_mustnot $ZFS destroy -rR $dtst
+ else
+ log_must $ZFS destroy -rR $dtst
+ log_must $ZFS snapshot $dtst
+ fi
fi
;;
*) log_fail "Unsupported dataset: '$dtst'."
esac
+ # Kill any lingering instances of mkbusy, and clear the list.
+ if is_linux ; then
+ [[ -z $pidlist ]] || log_must $KILL -TERM $pidlist
+ pidlist=""
+ log_mustnot $PGREP -fl $MKBUSY
+ fi
+
# Firstly, umount ufs filesystem which was created by zfs volume.
if is_global_zone; then
log_must $UMOUNT -f $TESTDIR1
log_must $ZFS destroy $opt $dtst
# Kill any lingering instances of mkbusy, and clear the list.
- [[ -z $pidlist ]] || log_must $KILL -TERM $pidlist
- pidlist=""
- log_mustnot $PGREP -fl $MKBUSY
+ if ! is_linux ; then
+ [[ -z $pidlist ]] || log_must $KILL -TERM $pidlist
+ pidlist=""
+ log_mustnot $PGREP -fl $MKBUSY
+ fi
case $dtst in
$CTR) check_dataset datasetnonexists \