diff options
Diffstat (limited to 'tests/zfs-tests')
-rw-r--r-- | tests/zfs-tests/tests/functional/zvol/zvol_misc/zvol_misc_common.kshlib | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/zfs-tests/tests/functional/zvol/zvol_misc/zvol_misc_common.kshlib b/tests/zfs-tests/tests/functional/zvol/zvol_misc/zvol_misc_common.kshlib index 8fc6089b7..3ee09a151 100644 --- a/tests/zfs-tests/tests/functional/zvol/zvol_misc/zvol_misc_common.kshlib +++ b/tests/zfs-tests/tests/functional/zvol/zvol_misc/zvol_misc_common.kshlib @@ -38,9 +38,7 @@ function udev_wait { sleep 1 - if is_freebsd; then - return 0 - fi + is_linux || return 0 udevadm trigger --action=change udevadm settle for i in {1..3}; do @@ -60,7 +58,9 @@ function udev_wait # function udev_cleanup { + is_linux || return 0 log_note "Pruning broken ZVOL symlinks ..." + udevadm settle # find all dangling links and delete them find -L "${ZVOL_DEVDIR}" -type l -print -delete |