mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: wait for udev to minize race windows
mkfs can complain about volume in use when meets udev rule processing.
This commit is contained in:
parent
870c7bc76c
commit
f64f6c5e70
@ -26,6 +26,7 @@ aux prepare_vg 2 100
|
|||||||
snap_and_merge() {
|
snap_and_merge() {
|
||||||
lvcreate -s -n $lv2 -L20 $vg/$lv1 "$dev2"
|
lvcreate -s -n $lv2 -L20 $vg/$lv1 "$dev2"
|
||||||
#dd if=/dev/zero of="$DM_DEV_DIR/$vg/$lv1" bs=1M count=10 conv=fdatasync
|
#dd if=/dev/zero of="$DM_DEV_DIR/$vg/$lv1" bs=1M count=10 conv=fdatasync
|
||||||
|
aux udev_wait
|
||||||
mkfs.ext3 "$DM_DEV_DIR/$vg/$lv2"
|
mkfs.ext3 "$DM_DEV_DIR/$vg/$lv2"
|
||||||
sync
|
sync
|
||||||
lvs -a $vg
|
lvs -a $vg
|
||||||
|
Loading…
Reference in New Issue
Block a user