]> sourceware.org Git - lvm2.git/commitdiff
tests: wait for udev to minize race windows
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 13 Jul 2017 19:10:06 +0000 (21:10 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 13 Jul 2017 19:11:16 +0000 (21:11 +0200)
mkfs can complain about volume in use when meets udev rule processing.

test/shell/snapshot-merge-stack.sh

index 6eca2a06ae00a651dea3536378f9498c40a073c8..fe208655ebdc0689d9a192d1a122bfdbeff69231 100644 (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
This page took 0.031361 seconds and 5 git commands to generate.