From 434a3375ce84db2f86808875fb85f5afa1e84750 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 7 Mar 2018 09:55:54 -0800 Subject: [PATCH] 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 --- .../tests/functional/rsend/send-c_stream_size_estimate.ksh | 1 + 1 file changed, 1 insertion(+) 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 -- 2.40.0