mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: slightly longer delay
Try to avoid race with slightly longer delay.
This commit is contained in:
parent
c465ca6a3a
commit
1b9bf5ce9e
@ -39,11 +39,13 @@ done
|
|||||||
# Delay dev to ensure we have some time to 'capture' interrupt in flush
|
# Delay dev to ensure we have some time to 'capture' interrupt in flush
|
||||||
aux delay_dev "$dev1" 0 500 $(get first_extent_sector "$dev1"):
|
aux delay_dev "$dev1" 0 500 $(get first_extent_sector "$dev1"):
|
||||||
|
|
||||||
|
lvdisplay --maps $vg
|
||||||
|
sync
|
||||||
dd if=/dev/zero of="$DM_DEV_DIR/$vg/$lv1" bs=4k count=100 conv=fdatasync
|
dd if=/dev/zero of="$DM_DEV_DIR/$vg/$lv1" bs=4k count=100 conv=fdatasync
|
||||||
|
|
||||||
LVM_TEST_TAG="kill_me_$PREFIX" lvconvert -v --splitcache $vg/$lv1 >log 2>&1 &
|
LVM_TEST_TAG="kill_me_$PREFIX" lvconvert -v --splitcache $vg/$lv1 >log 2>&1 &
|
||||||
PID_CONVERT=$!
|
PID_CONVERT=$!
|
||||||
sleep 0.1
|
sleep 0.2
|
||||||
kill -INT $PID_CONVERT
|
kill -INT $PID_CONVERT
|
||||||
aux enable_dev "$dev1"
|
aux enable_dev "$dev1"
|
||||||
wait
|
wait
|
||||||
|
Loading…
Reference in New Issue
Block a user