Skip to contentSkip to conversation

master - tests: enforce flush of cache target

PATCH Zdenek Kabelac 1 participant 1 message Jul 19, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=9d19c1075f0265aed7a1d1dab216e65cae6d460a
Commit:        9d19c1075f0265aed7a1d1dab216e65cae6d460a
Parent:        6dc4d035088c74693e3920961ec7814e4ecf0793
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Tue Jul 19 17:21:56 2016 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Jul 19 17:39:46 2016 +0200

tests: enforce flush of cache target

Since now lvm command no longer is flushing cache target with status query - enforce it with extra status.

---
 test/shell/lvconvert-repair-cache.sh |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
test/shell/lvconvert-repair-cache.sh +3 -0
index 756fd12..568d66b 100644
@@ -101,6 +101,9 @@ sync
 # Seriously damage cache metadata
 aux error_dev "$dev1" 2054:2
 
+# flushing status
+dmsetup status $vg-$lv1
+
 # On fixed kernel we get instant Fail here
 get lv_field  $vg/$lv1 lv_attr | tee out
 grep "Cwi-a-C-F-" out || {