Skip to contentSkip to conversation

master - tests: check thin is not flushed for status

PATCH Zdenek Kabelac 1 participant 1 message May 27, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=7d4d0ff606a78909041c0b734a3ceacc94a47fa0
Commit:        7d4d0ff606a78909041c0b734a3ceacc94a47fa0
Parent:        88eeb004e9d34635221d45619723518a71ac2ccc
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri May 27 17:24:18 2016 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri May 27 17:25:52 2016 +0200

tests: check thin is not flushed for status

We finally approach a moment where we generally avoid flushing thin-pool with every lvs command...

---
 test/shell/thin-flags.sh |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
test/shell/thin-flags.sh +4 -0
index 966752a..3fcafb2 100644
@@ -52,6 +52,10 @@ lvcreate -T -L1M --errorwhenfull y $vg/pool
 lvcreate -V2 -n $lv2 $vg/pool
 
 aux error_dev  "$dev2" 2054:2
+# Check our 'lvs' is not flushing pool - should be still OK
+check lv_attr_bit health $vg/pool "-"
+# Enforce flush on thin pool device to notice error device.
+dmsetup status $vg-pool-tpool
 check lv_attr_bit health $vg/pool "F"
 check lv_attr_bit health $vg/$lv2 "F"
 aux enable_dev "$dev2"