From: Brian Behlendorf Date: Wed, 7 Mar 2018 17:55:54 +0000 (-0800) Subject: ZTS: fix send-c_stream_size_estimate X-Git-Tag: zfs-0.8.0-rc1~290 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=434a3375ce84db2f86808875fb85f5afa1e84750;p=zfs ZTS: fix send-c_stream_size_estimate The test could fail when attempting to write to a newly created volume which was missing its device node. Resolve the issue by calling block_device_wait() which blocks until udev creates the needed entry. Reviewed-by: George Melikov Reviewed-by: Giuseppe Di Natale Signed-off-by: Brian Behlendorf Closes #7276 Closes #7277 --- diff --git a/tests/zfs-tests/tests/functional/rsend/send-c_stream_size_estimate.ksh b/tests/zfs-tests/tests/functional/rsend/send-c_stream_size_estimate.ksh index 3677db83f..130bc3dbc 100755 --- a/tests/zfs-tests/tests/functional/rsend/send-c_stream_size_estimate.ksh +++ b/tests/zfs-tests/tests/functional/rsend/send-c_stream_size_estimate.ksh @@ -60,6 +60,7 @@ for compress in $compress_types; do datasetexists $send_vol && log_must_busy zfs destroy -r $send_vol log_must zfs create -o compress=$compress $send_ds log_must zfs create -V 1g -o compress=$compress $send_vol + block_device_wait typeset dir=$(get_prop mountpoint $send_ds) log_must cp $file $dir