mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +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:
parent
548269a1dd
commit
93597bcbdc
@ -213,6 +213,12 @@ vgremove -ff $vg1
|
|||||||
# Can't test >= 16T devices on 32bit
|
# Can't test >= 16T devices on 32bit
|
||||||
test "$TSIZE" = 15P || exit 0
|
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
|
# Check usability with largest extent size
|
||||||
pvcreate "$DM_DEV_DIR/$vg/$lv"
|
pvcreate "$DM_DEV_DIR/$vg/$lv"
|
||||||
vgcreate -s 4G $vg1 "$DM_DEV_DIR/$vg/$lv"
|
vgcreate -s 4G $vg1 "$DM_DEV_DIR/$vg/$lv"
|
||||||
|
Loading…
Reference in New Issue
Block a user