Skip to contentSkip to conversation

master - test: Correctly trigger inconsistent metadata repair in lvmcache-exercise.

PATCH Petr Rockai 1 participant 1 message Oct 9, 2013

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=17f3b8280b8ade397a6a4a8fd82ba7dd7d0e1d1b
Commit:        17f3b8280b8ade397a6a4a8fd82ba7dd7d0e1d1b
Parent:        0decd7553ac9dcf4a7d81f5b10b1f4ca053ae9a5
Author:        Petr Rockai <[email protected]>
AuthorDate:    Wed Oct 9 14:44:15 2013 +0200
Committer:     Petr Rockai <[email protected]>
CommitterDate: Wed Oct 9 14:44:15 2013 +0200

test: Correctly trigger inconsistent metadata repair in lvmcache-exercise.

Since lvconvert --repair sets handles_missing_pvs, it will not repair inconsistent metadata automatically. Calling lvs instead should do the trick.

---
 test/shell/lvmcache-exercise.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
test/shell/lvmcache-exercise.sh +1 -1
index 5ea6381..6e8efda 100644
@@ -30,7 +30,7 @@ lvconvert --yes --repair $vg2/$lv1
 aux enable_dev "$dev3"
 
 # here it should fix any reappeared devices
-lvconvert --yes --repair $vg2/$lv1
+lvs
 
 lvs -a $vg2 -o+devices 2>&1 | tee out
 not grep reappeared out