[pve-devel] [PATCH storage 03/11] zfstest: wait for devices to settle after creation
Fabian Grünbichler
f.gruenbichler at proxmox.com
Wed May 17 11:42:30 CEST 2017
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
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 {
--
2.1.4
More information about the pve-devel
mailing list