mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: better check for array in sync
Update check for raid array being in sync - getting somewhat complex. It's another way to fight with problems in: https://bugzilla.redhat.com/show_bug.cgi?id=1210637
This commit is contained in:
parent
c254743ef3
commit
f0a4955eb1
@ -212,7 +212,7 @@ in_sync() {
|
||||
|
||||
b=( $(echo ${a[$idx]} | sed s:/:' ':) )
|
||||
|
||||
if [ ${b[0]} != ${b[1]} ]; then
|
||||
if [ ${a[$(($idx + 1))]} != "idle" -o ${b[0]} -eq 0 -o ${b[0]} != ${b[1]} ]; then
|
||||
echo "$lvm_name ($type$snap) is not in-sync"
|
||||
return 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user