mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: vgck now exits with error for bad vg
This commit is contained in:
parent
a9b0aa5c17
commit
a01a8d7172
@ -22,18 +22,18 @@ dd if=/dev/urandom bs=512 seek=2 count=32 of="$dev2"
|
||||
|
||||
# TODO: aux lvmconf "global/locking_type = 4"
|
||||
|
||||
vgscan 2>&1 | tee vgscan.out
|
||||
vgscan 2>&1 | tee vgscan.out || true
|
||||
|
||||
if test -e LOCAL_LVMETAD; then
|
||||
not grep "Inconsistent metadata found for VG $vg" vgscan.out
|
||||
not grep "Failed" vgscan.out
|
||||
else
|
||||
grep "Inconsistent metadata found for VG $vg" vgscan.out
|
||||
grep "Failed" vgscan.out
|
||||
fi
|
||||
|
||||
dd if=/dev/urandom bs=512 seek=2 count=32 of="$dev2"
|
||||
aux notify_lvmetad "$dev2"
|
||||
|
||||
vgck $vg 2>&1 | tee vgck.out
|
||||
vgck $vg 2>&1 | tee vgck.out || true
|
||||
grep Incorrect vgck.out
|
||||
|
||||
vgremove -ff $vg
|
||||
|
Loading…
Reference in New Issue
Block a user