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

tests: ensure single leg is broken

Make sure only the first raid5 leg, that contains searched string
is being modified, so we do not 'damage'  2legs at once.
This commit is contained in:
Zdenek Kabelac 2023-07-15 10:21:48 +02:00
parent 914d793858
commit f71d3cce93

View File

@ -53,7 +53,8 @@ _test1() {
# Corrupting raid1 is simple - 1 leg needs to be modifed
# For raid5 corrupted block can be places on any of its leg.
for i in "$@" ; do
aux corrupt_dev "$i" BBBBBBBBBBBBBBBBB BBBBBBBBCBBBBBBBB
aux corrupt_dev "$i" BBBBBBBBBBBBBBBBB BBBBBBBBCBBBBBBBB |tee out
grep -q "copied" && break # leg found and corrupted
done
lvchange -ay $vg/$lv1