1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-09 01:18:39 +03:00

tests: add mising udev_wait

mdadm does not handle udev waiting so it may exit earlier,
while devices are still 'running'.
This commit is contained in:
Zdenek Kabelac 2018-11-20 16:01:12 +01:00 committed by David Teigland
parent 4f32c4fbcd
commit b252c20eb9

View File

@ -52,6 +52,7 @@ pvs
vgchange -an $vg
mdadm --stop "$mddev"
aux udev_wait
# with md superblock 1.0 this pvs will report duplicates
# for the two md legs since the md device itself is not
@ -70,6 +71,7 @@ lvs $vg
# start the md dev
mdadm --assemble "$mddev" "$dev1" "$dev2"
aux udev_wait
# Now that the md dev is online, pvs can see it and
# ignore the two legs, so there's no duplicate warning