mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: check we don't warn when converting to thin LV
Tool produced warning for non-zeroing thin-pools.
This commit is contained in:
parent
0c3a09f1d7
commit
9ad30b0b38
@ -167,5 +167,13 @@ lvcreate -l100 -n thin $vg
|
|||||||
lvconvert --yes --thin --thinpool $vg/pool $vg/thin --originname thin-origin
|
lvconvert --yes --thin --thinpool $vg/pool $vg/thin --originname thin-origin
|
||||||
check lv_field $vg/thin segtype thin
|
check lv_field $vg/thin segtype thin
|
||||||
check lv_field $vg/thin-origin segtype linear
|
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
|
vgremove -ff $vg
|
||||||
|
Loading…
Reference in New Issue
Block a user