mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-25 01:34:38 +03:00
Relax the mirror test in test/lib/check.sh.
This commit is contained in:
parent
16af1b083b
commit
9c705ce71e
@ -140,9 +140,15 @@ mirror() {
|
||||
mirror_nonredundant() {
|
||||
lv="$1/$2"
|
||||
lvs -oattr "$lv" | grep -q "^ *m.....$" || {
|
||||
echo "$lv expected a mirror, but is not:"
|
||||
lvs -a $lv
|
||||
exit 1
|
||||
if lvs -oattr "$lv" | grep -q "^ *o.....$" &&
|
||||
lvs -a | fgrep -q "[${lv}_mimage"; then
|
||||
echo "TEST WARNING: $lv is a snapshot origin and looks like a mirror,"
|
||||
echo "assuming it is actually a mirror"
|
||||
else
|
||||
echo "$lv expected a mirror, but is not:"
|
||||
lvs -a $lv
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
if test -n "$3"; then mirror_log_on "$1" "$2" "$3"; fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user