1
0
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:
Zdenek Kabelac 2017-07-13 21:10:06 +02:00
parent 870c7bc76c
commit f64f6c5e70

View File

@ -26,6 +26,7 @@ aux prepare_vg 2 100
snap_and_merge() {
lvcreate -s -n $lv2 -L20 $vg/$lv1 "$dev2"
#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"
sync
lvs -a $vg