diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2020-02-26 13:26:46 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2020-02-26 13:29:21 +0100 |
commit | 9532bb577a82df454254ab65002f4be5bcc65060 (patch) | |
tree | fb56170a219b522330808cd5c1ef017085f1cc4f | |
parent | d02d7bc560ef27d2a0e66d40f96519379d320735 (diff) | |
download | lvm2-9532bb577a82df454254ab65002f4be5bcc65060.tar.gz |
tests: validate vdo slab_size
New vdoformat can print this size - so check we pass proper bit count
matching preset value.
-rw-r--r-- | WHATS_NEW | 1 | ||||
-rw-r--r-- | test/lib/aux.sh | 1 | ||||
-rw-r--r-- | test/shell/lvcreate-vdo.sh | 13 |
3 files changed, 10 insertions, 5 deletions
@@ -1,5 +1,6 @@ Version 2.03.09 - ==================================== + Fix formating of vdopool (vdo_slab_size_mb was smaller by 2 bits). Fix showing of a dm kernel error when uncaching a volume with cachevol. Version 2.03.08 - 11th February 2020 diff --git a/test/lib/aux.sh b/test/lib/aux.sh index a9d1fe49d..83a88a611 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -1233,6 +1233,7 @@ activation/udev_sync = 1 activation/verify_udev_operations = $LVM_VERIFY_UDEV activation/raid_region_size = 512 allocation/wipe_signatures_when_zeroing_new_lvs = 0 +allocation/vdo_slab_size_mb = 128 backup/archive = 0 backup/backup = 0 devices/cache_dir = "$TESTDIR/etc" diff --git a/test/shell/lvcreate-vdo.sh b/test/shell/lvcreate-vdo.sh index 64377cdc2..d66e35390 100644 --- a/test/shell/lvcreate-vdo.sh +++ b/test/shell/lvcreate-vdo.sh @@ -34,14 +34,17 @@ get_devs # 'allocation/vdo_physical_threads = 0' \ # 'allocation/vdo_cpu_threads = 1' -aux lvmconf 'allocation/vdo_slab_size_mb = 128' - - vgcreate $SHARED -s 64K "$vg" "${DEVICES[@]}" # Create VDO device (vdo-pool is ATM internal volume type) -lvcreate --type vdo -L4G -n $lv1 $vg/$lv2 -check lv_field $vg/$lv1 size "1.24g" +lvcreate --type vdo -L4G -n $lv1 $vg/$lv2 >out 2>&1 +# new vdoformat prints some more info +if grep "data slabs" out ; then + # check we have match vdo_slab_size_mb == 128MB (aux.sh) + grep "each 128 MB" out +fi + +check lv_field $vg/$lv1 size "<1.24g" check lv_field $vg/${lv2} size "4.00g" check lv_field $vg/${lv2}_vdata size "4.00g" lvremove -ff $vg |