mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: check proper support of fmt2 with cleaner policy
This commit is contained in:
parent
8b111f28b0
commit
c93e0932e8
@ -51,6 +51,11 @@ lvs -a -o+cachemetadataformat $vg
|
||||
|
||||
lvremove -f $vg
|
||||
|
||||
lvcreate --type cache-pool --cachepolicy cleaner --cachemetadataformat 1 -L1 $vg/cpool
|
||||
lvcreate -H -L10 -n $lv1 --cachepool $vg/cpool
|
||||
check lv_field $vg/$lv1 cachemetadataformat "1"
|
||||
lvremove -f $vg
|
||||
|
||||
if [ -z "$META2" ]; then
|
||||
# for these test we need kernel with metadata2 support
|
||||
|
||||
@ -78,6 +83,11 @@ lvconvert --config 'allocation/cache_metadata_format=1' -y -H --cachepool $vg/cp
|
||||
check lv_field $vg/$lv1 cachemetadataformat "1"
|
||||
lvremove -f $vg
|
||||
|
||||
lvcreate --type cache-pool --cachepolicy cleaner -L1 $vg/cpool
|
||||
lvcreate -H -L10 -n $lv1 --cachepool $vg/cpool
|
||||
check lv_field $vg/$lv1 cachemetadataformat "2"
|
||||
lvremove -f $vg
|
||||
|
||||
fi
|
||||
#lvs -a -o name,cachemetadataformat,kernelmetadataformat,chunksize,cachepolicy,cachemode $vg
|
||||
|
||||
|
@ -106,6 +106,11 @@ fail lvconvert --type cache --cachepool $vg/pool $vg/corigin
|
||||
lvconvert --yes --cache --cachepool $vg/pool $vg/corigin
|
||||
lvremove -ff $vg
|
||||
|
||||
# Check we also support conversion that uses 'cleaner' cache policy
|
||||
lvcreate -n corigin -l 10 $vg
|
||||
lvcreate -n pool -l 10 $vg
|
||||
lvconvert --yes --cache --cachepool $vg/pool $vg/corigin --cachepolicy cleaner
|
||||
lvremove -ff $vg
|
||||
|
||||
#######################
|
||||
# Invalid conversions #
|
||||
|
Loading…
Reference in New Issue
Block a user