1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: add udev sync point

Missed synchronization with udev may lead to error on vgcreate,
if previous vgremove was not handled fast enough by udev.
This commit is contained in:
Zdenek Kabelac 2014-06-20 11:11:39 +02:00
parent 548269a1dd
commit 93597bcbdc

View File

@ -213,6 +213,12 @@ vgremove -ff $vg1
# Can't test >= 16T devices on 32bit
test "$TSIZE" = 15P || exit 0
# synchronize with udev activity
# FIXME - otherwise sequence of vgremove followed by vgcreate may fail...
# as there could be still remaing links in /dev
# Unusure if 'vgcreate' should do this type of detection in udev mode.
aux udev_wait
# Check usability with largest extent size
pvcreate "$DM_DEV_DIR/$vg/$lv"
vgcreate -s 4G $vg1 "$DM_DEV_DIR/$vg/$lv"