. lib/inittest
aux have_raid 1 3 0 || skip
-v1_15_0=0
-aux have_raid 1 15 0 && v1_15_0=1
+PROGRESS=0
+aux have_raid 1 13 0 && PROGRESS=1
# Use smallest regionsize to save VG space
regionsize=$(getconf PAGESIZE) # in bytes
sector=$(( $(get first_extent_sector "$dev2") + 2048 ))
aux zero_dev "$dev1" "${sector}:"
-aux delayzero_dev "$dev2" 0 30 "${sector}:"
+aux delayzero_dev "$dev2" 0 10 "${sector}:"
# Create raid1 LV consuming 1 MD bitmap page
lvcreate --yes --type raid1 --regionsize ${regionsize}K -L$(($lvsz-$lvext))M -n $lv1 $vg
check lv_field $vg/$lv1 region_size "4.00k"
# to slow down extension - slowdown readings
-aux delayzero_dev "$dev1" 100 0 "${sector}:"
-aux delayzero_dev "$dev2" 0 100 "${sector}:"
+aux delayzero_dev "$dev1" 50 0 "${sector}:"
+aux delayzero_dev "$dev2" 0 50 "${sector}:"
# Extend so that full MD bitmap page is consumed
lvextend -y -L+${lvext}M $vg/$lv1
-if [ $v1_15_0 -eq 1 ]
+if [ $PROGRESS -eq 1 ]
then
not check lv_field $vg/$lv1 sync_percent "100.00"
check lv_field $vg/$lv1 size "$(($lvsz)).00m" $vg/$lv1
# Extend so that another MD bitmap page is allocated
lvextend -y -L+${lvext}M $vg/$lv1
-if [ $v1_15_0 -eq 1 ]
+if [ $PROGRESS -eq 1 ]
then
not check lv_field $vg/$lv1 sync_percent "100.00"
else