mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: missed reduction of raid check
This commit is contained in:
parent
c4b1bfa5f0
commit
1c2dff2655
@ -38,7 +38,9 @@ for deactivate in true false; do
|
||||
|
||||
lvresize -l +2 $vg/$lv1
|
||||
|
||||
lvresize --fs ignore -y -l -2 $vg/$lv1
|
||||
NOT_RESIZE=
|
||||
aux have_raid 1 9 0 || NOT_RESIZE=not
|
||||
$NOT_RESIZE lvresize --fs ignore -y -l -2 $vg/$lv1
|
||||
#check raid_images_contiguous $vg $lv1
|
||||
|
||||
# Extend and reduce 3-striped RAID 4/5/6/10
|
||||
@ -55,7 +57,7 @@ for deactivate in true false; do
|
||||
check lv_field $vg/$lv2 "seg_size" "1.50m"
|
||||
|
||||
#check raid_images_contiguous $vg $lv1
|
||||
if aux have_raid 1 9 0 ; then
|
||||
if [ -z "$NOT_RESIZE" ] ; then
|
||||
lvresize --fs ignore -y -l -3 $vg/$lv2
|
||||
check lv_field $vg/$lv2 "seg_size" "768.00k"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user