]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
grub-fs-tester: explicitly set segment type for LVM mirror
authorAndrei Borzenkov <arvidjaar@gmail.com>
Mon, 16 Mar 2015 18:16:19 +0000 (21:16 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Mon, 16 Mar 2015 18:16:19 +0000 (21:16 +0300)
LVM mirror defaults to RAID1 today and can be different on different
systems as set in lvm.conf.

tests/util/grub-fs-tester.in

index 4f7f9203af104a6d618bc947f5d32e1bc096f385..f63ed0b0871fd6661cb0a676699a87164a8eb105 100644 (file)
@@ -729,9 +729,9 @@ for ((LOGSECSIZE=MINLOGSECSIZE;LOGSECSIZE<=MAXLOGSECSIZE;LOGSECSIZE=LOGSECSIZE +
                    elif [ x$fs = xlvm_stripe ] ; then
                        lvcreate -l "$((NDEVICES*7*LVMBLKMUL))" -i "$NDEVICES" -n testvol grub_test
                    elif [ x$fs = xlvm_mirror1 ] ; then
-                       lvcreate -m 1 -l "$((NDEVICES*2*LVMBLKMUL))" -n testvol grub_test
+                       lvcreate -m 1 -l "$((NDEVICES*2*LVMBLKMUL))" --type mirror -n testvol grub_test
                    elif [ x$fs = xlvm_mirrorall ] ; then
-                       lvcreate -m "$((NDEVICES-1))" -l "$((6*LVMBLKMUL))" -n testvol grub_test
+                       lvcreate -m "$((NDEVICES-1))" -l "$((6*LVMBLKMUL))" --type mirror -n testvol grub_test
                    elif [ x$fs = xlvm_raid4 ] || [ x$fs = xlvm_raid5 ]; then
                        lvcreate -l "$(((NDEVICES-1) * 5*LVMBLKMUL))" -i "$((NDEVICES-1))" --type "${fs/lvm_/}" -n testvol grub_test
                    elif [ x$fs = xlvm_raid6 ]; then