]> sourceware.org Git - lvm2.git/commitdiff
test: allow to succeed in the cluster
authorHeinz Mauelshagen <heinzm@redhat.com>
Fri, 1 Dec 2017 17:59:55 +0000 (18:59 +0100)
committerHeinz Mauelshagen <heinzm@redhat.com>
Fri, 1 Dec 2017 17:59:55 +0000 (18:59 +0100)
Avoiding "$(get first_extent_sector "$d")" in the loop
allows the test to succeed in the cluster.  Further cluster
analysis needed to get to the core reason.

test/shell/lvconvert-repair-raid.sh

index c866455ddfa49ee167da7bb07405e4ac88396c77..d29b72d15eeebb3e4b181732c60ebb8cf810994a 100644 (file)
@@ -25,10 +25,12 @@ aux lvmconf 'allocation/maximise_cling = 0' \
 aux prepare_vg 8 80
 get_devs
 
+offset=$(get first_extent_sector $dev1)
+
 function delay
 {
        for d in "${DEVICES[@]}"; do
-               aux delay_dev "$d" 0 $1 "$(get first_extent_sector "$d")"
+               aux delay_dev "$d" 0 $1 "$offset"
        done
 }
 
This page took 0.036889 seconds and 5 git commands to generate.