From 9ad30b0b38a212a51af5c25b0783cb595fa3ab76 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 27 Jul 2016 15:59:48 +0200 Subject: [PATCH] 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 file changed, 8 insertions(+) diff --git a/test/shell/lvconvert-thin-external.sh b/test/shell/lvconvert-thin-external.sh index 712e3681b..470e87c94 100644 --- a/test/shell/lvconvert-thin-external.sh +++ b/test/shell/lvconvert-thin-external.sh @@ -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