1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: fix calcucaltion

Code works properly.
This commit is contained in:
Zdenek Kabelac 2015-05-18 10:16:09 +02:00
parent caaca15854
commit 0cb9df3cec

View File

@ -86,11 +86,11 @@ check lv_field $vg/raid1 size "56.50m"
lvremove -ff $vg lvremove -ff $vg
# 1 metadata LV = 1 extent # 1 metadata LV = 1 extent
# 1 image = 37 extents # 1 image = 37 extents = 18.5m
# 5 images = 190 extents = 95.00m = lv_size # 5 images = 185 extents = 92.5m = lv_size
lvs -a $vg
lvcreate --type raid5 -i 5 -l 100%FREE -an -Zn -n raid5 $vg lvcreate --type raid5 -i 5 -l 100%FREE -an -Zn -n raid5 $vg
should check lv_field $vg/raid5 size "95.00m" check lv_field $vg/raid5 size "92.50m"
#FIXME: Currently allocates incorrectly at 87.50m
lvremove -ff $vg lvremove -ff $vg
# 1 image = 37+38 extents # 1 image = 37+38 extents
@ -102,8 +102,7 @@ lvremove -ff $vg
# 1 image = 37 extents # 1 image = 37 extents
# 4 images = 148 extents = 74.00m = lv_size # 4 images = 148 extents = 74.00m = lv_size
lvcreate --type raid6 -i 4 -l 100%FREE -an -Zn -n raid6 $vg lvcreate --type raid6 -i 4 -l 100%FREE -an -Zn -n raid6 $vg
should check lv_field $vg/raid6 size "74.00m" check lv_field $vg/raid6 size "74.00m"
#FIXME: Currnently allocates incorrectly at 70.00m
lvremove -ff $vg lvremove -ff $vg
### ###