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 <mail@gmelikov.ru> Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #7276 Closes #7277
This commit is contained in:
parent
a07ad58847
commit
434a3375ce
|
@ -60,6 +60,7 @@ for compress in $compress_types; do
|
||||||
datasetexists $send_vol && log_must_busy zfs destroy -r $send_vol
|
datasetexists $send_vol && log_must_busy zfs destroy -r $send_vol
|
||||||
log_must zfs create -o compress=$compress $send_ds
|
log_must zfs create -o compress=$compress $send_ds
|
||||||
log_must zfs create -V 1g -o compress=$compress $send_vol
|
log_must zfs create -V 1g -o compress=$compress $send_vol
|
||||||
|
block_device_wait
|
||||||
|
|
||||||
typeset dir=$(get_prop mountpoint $send_ds)
|
typeset dir=$(get_prop mountpoint $send_ds)
|
||||||
log_must cp $file $dir
|
log_must cp $file $dir
|
||||||
|
|
Loading…
Reference in New Issue