]> granicus.if.org Git - zfs/commitdiff
ZTS: fix send-c_stream_size_estimate
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 7 Mar 2018 17:55:54 +0000 (09:55 -0800)
committerGitHub <noreply@github.com>
Wed, 7 Mar 2018 17:55:54 +0000 (09:55 -0800)
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 <mail@gmelikov.ru>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #7276
Closes #7277

tests/zfs-tests/tests/functional/rsend/send-c_stream_size_estimate.ksh

index 3677db83f1928c5937c23b42672b79c8b40bebe5..130bc3dbc9c3e5e1527ded0eab7b94ab5b1d9a99 100755 (executable)
@@ -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