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 <behlendorf1@llnl.gov>
This commit is contained in:
Brian Behlendorf 2016-03-25 11:51:01 -07:00
parent 541a09016d
commit 647cb8545d
1 changed files with 2 additions and 0 deletions

View File

@ -104,6 +104,8 @@ function do_vol_test
log_must $ZFS create -V $VOLSIZE -o copies=$copy $vol log_must $ZFS create -V $VOLSIZE -o copies=$copy $vol
log_must $ZFS set refreservation=none $vol log_must $ZFS set refreservation=none $vol
block_device_wait
if [[ $type == "ufs" ]]; then if [[ $type == "ufs" ]]; then
log_must $ECHO y | $NEWFS $vol_r_path >/dev/null 2>&1 log_must $ECHO y | $NEWFS $vol_r_path >/dev/null 2>&1
log_must $MOUNT -F ufs -o rw $vol_b_path $mntp log_must $MOUNT -F ufs -o rw $vol_b_path $mntp