diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2016-05-27 17:24:18 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2016-05-27 17:25:52 +0200 |
commit | 7d4d0ff606a78909041c0b734a3ceacc94a47fa0 (patch) | |
tree | 3f621381f89daa0cd3e0b28abe38aa6c41622424 | |
parent | 88eeb004e9d34635221d45619723518a71ac2ccc (diff) | |
download | lvm2-7d4d0ff606a78909041c0b734a3ceacc94a47fa0.tar.gz |
tests: check thin is not flushed for status
We finally approach a moment where we generally avoid
flushing thin-pool with every lvs command...
-rw-r--r-- | test/shell/thin-flags.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/shell/thin-flags.sh b/test/shell/thin-flags.sh index 966752a81..3fcafb291 100644 --- a/test/shell/thin-flags.sh +++ b/test/shell/thin-flags.sh @@ -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" |