master - tests: check we don't warn when converting to thin LV
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=9ad30b0b38a212a51af5c25b0783cb595fa3ab76 Commit: 9ad30b0b38a212a51af5c25b0783cb595fa3ab76 Parent: 0c3a09f1d7423c077ae513baecd2260928500ade Author: Zdenek Kabelac <[email protected]> AuthorDate: Wed Jul 27 15:59:48 2016 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Wed Jul 27 16:20:57 2016 +0200
tests: check we don't warn when converting to thin LV
Tool produced warning for non-zeroing thin-pools.
--- test/shell/lvconvert-thin-external.sh | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
test/shell/lvconvert-thin-external.sh +8 -0
@@ -167,5 +167,13 @@ lvcreate -l100 -n thin $vg lvconvert --yes --thin --thinpool $vg/pool $vg/thin --originname thin-origin check lv_field $vg/thin segtype thin check lv_field $vg/thin-origin segtype linear +lvremove -ff $vg + +# Test conversion with non-zeroing thin-pool, should not WARN about zeroing +lvcreate -l50 -n pool $vg +lvcreate -l100 -n thin $vg +lvconvert --yes --thin --thinpool $vg/pool $vg/thin --zero n --originname thin-origin 2>&1 | tee out +not grep "not zeroed" out +check lv_field $vg/pool zero "" vgremove -ff $vg