From 647cb8545d92fab4cbbf2ffb94a458c1fced68b3 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 25 Mar 2016 11:51:01 -0700 Subject: [PATCH] zfs_copies: do_vol_test must wait for device Occasionally zfs_copies_* tests which rely on do_vol_test() will fail because udev hasn't yet created the minor device. Wait for it. Signed-off-by: Brian Behlendorf --- .../tests/functional/cli_root/zfs_copies/zfs_copies.kshlib | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/zfs-tests/tests/functional/cli_root/zfs_copies/zfs_copies.kshlib b/tests/zfs-tests/tests/functional/cli_root/zfs_copies/zfs_copies.kshlib index 68cfb9220f..4957c0f966 100644 --- a/tests/zfs-tests/tests/functional/cli_root/zfs_copies/zfs_copies.kshlib +++ b/tests/zfs-tests/tests/functional/cli_root/zfs_copies/zfs_copies.kshlib @@ -104,6 +104,8 @@ function do_vol_test log_must $ZFS create -V $VOLSIZE -o copies=$copy $vol log_must $ZFS set refreservation=none $vol + block_device_wait + if [[ $type == "ufs" ]]; then log_must $ECHO y | $NEWFS $vol_r_path >/dev/null 2>&1 log_must $MOUNT -F ufs -o rw $vol_b_path $mntp