From 078c28aac66d8dd501b5b66c30fcbf0d870bcd77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Wed, 17 May 2017 11:42:30 +0200 Subject: [PATCH] zfstest: wait for devices to settle after creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler --- test/run_test_zfspoolplugin.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/run_test_zfspoolplugin.pl b/test/run_test_zfspoolplugin.pl index fad021b..5c1120f 100755 --- a/test/run_test_zfspoolplugin.pl +++ b/test/run_test_zfspoolplugin.pl @@ -2606,6 +2606,8 @@ sub setup_zfs { print "create linked clone $vmlinked\n" if $verbose; run_command("zfs clone $zpath\/$ctbase$basesnap $zpath\/$ctlinked -o refquota=${volsize}G"); + run_command("udevadm trigger --subsystem-match block"); + run_command("udevadm settle --timeout 10 --exit-if-exists=/dev/zvol/$zpath\/$ctlinked"); } sub cleanup_zfs {