ZTS: Waiting for zvols to be available
commit70bf547a98ab17262c5b9908b2c8b814d518ac18
authorBrian Behlendorf <behlendorf1@llnl.gov>
Sun, 29 Aug 2021 15:56:58 +0000 (29 08:56 -0700)
committerGitHub <noreply@github.com>
Sun, 29 Aug 2021 15:56:58 +0000 (29 09:56 -0600)
treead63fdbe2c9c3e8941736f9f6d069f30330590a9
parent5bee265908fb0fccd8ff16f05a470c6b66ed1bd4
ZTS: Waiting for zvols to be available

The ZTS block_device_wait helper function should use -e when waiting
for a file to appear since it will be either a block special device
or a symlink.  This didn't cause any failures but when a device path
was specified the function would wait longer than needed.

Additionally update the most flakey test cases to pass the file path
to block_device_wait to try and improve the test reliability.  The
udev behavior on Fedora in particular can result in frequent false
positives.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #12515
tests/zfs-tests/include/blkdev.shlib
tests/zfs-tests/tests/functional/cli_root/zfs_copies/zfs_copies.kshlib
tests/zfs-tests/tests/functional/cli_root/zfs_rename/zfs_rename_007_pos.ksh
tests/zfs-tests/tests/functional/rsend/recv_dedup_encrypted_zvol.ksh
tests/zfs-tests/tests/functional/rsend/send-c_stream_size_estimate.ksh
tests/zfs-tests/tests/functional/zvol/zvol_swap/zvol_swap_004_pos.ksh