diff options
author | Brian Behlendorf <[email protected]> | 2018-03-07 09:55:54 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2018-03-07 09:55:54 -0800 |
commit | 434a3375ce84db2f86808875fb85f5afa1e84750 (patch) | |
tree | 3b5c00cb31b6e0ff54da2c6b987d30189c068b8e /tests/zfs-tests | |
parent | a07ad58847158fcd90a2a98f1476a81bfcd3c3ac (diff) |
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 <[email protected]>
Reviewed-by: Giuseppe Di Natale <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #7276
Closes #7277
Diffstat (limited to 'tests/zfs-tests')
-rwxr-xr-x | tests/zfs-tests/tests/functional/rsend/send-c_stream_size_estimate.ksh | 1 |
1 files changed, 1 insertions, 0 deletions
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 |