]> git.proxmox.com Git - pve-storage.git/commitdiff
zfstest: wait for devices to settle after creation
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 17 May 2017 09:42:30 +0000 (11:42 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 6 Jun 2017 14:15:42 +0000 (16:15 +0200)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
test/run_test_zfspoolplugin.pl

index fad021be20efa9e194b33c4e6eea04d52e719902..5c1120f4859aef9da2bf2efdbc7e9dad1fee8352 100755 (executable)
@@ -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 {