mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Fix tests to work with vgscan --cache fixing inconsistent metadata.
This commit is contained in:
parent
7387343eab
commit
b798ea409d
@ -32,11 +32,12 @@ check() {
|
||||
grep resized lvs.out | grep 8192
|
||||
}
|
||||
|
||||
# vgscan fixes up metadata
|
||||
# vgscan fixes up metadata (needs --cache option for direct scan if lvmetad is used)
|
||||
test -e LOCAL_LVMETAD && cache="--cache"
|
||||
init
|
||||
vgscan 2>&1 | tee cmd.out
|
||||
vgscan $cache 2>&1 | tee cmd.out
|
||||
grep "Inconsistent metadata found for VG $vg" cmd.out
|
||||
vgscan 2>&1 | tee cmd.out
|
||||
vgscan $cache 2>&1 | tee cmd.out
|
||||
not grep "Inconsistent metadata found for VG $vg" cmd.out
|
||||
check
|
||||
|
||||
|
@ -12,9 +12,11 @@
|
||||
. lib/test
|
||||
|
||||
check_() {
|
||||
vgscan 2>&1 | tee vgscan.out
|
||||
# vgscan needs --cache option for direct scan if lvmetad is used
|
||||
test -e LOCAL_LVMETAD && cache="--cache"
|
||||
vgscan $cache 2>&1 | tee vgscan.out
|
||||
grep "Inconsistent metadata found for VG $vg" vgscan.out
|
||||
vgscan 2>&1 | tee vgscan.out
|
||||
vgscan $cache 2>&1 | tee vgscan.out
|
||||
not grep "Inconsistent metadata found for VG $vg" vgscan.out
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user