1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: validate vdo slab_size

New vdoformat can print this size - so check we pass proper bit count
matching preset value.
This commit is contained in:
Zdenek Kabelac 2020-02-26 13:26:46 +01:00
parent d02d7bc560
commit 9532bb577a
3 changed files with 10 additions and 5 deletions

View File

@ -1,5 +1,6 @@
Version 2.03.09 - 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. Fix showing of a dm kernel error when uncaching a volume with cachevol.
Version 2.03.08 - 11th February 2020 Version 2.03.08 - 11th February 2020

View File

@ -1233,6 +1233,7 @@ activation/udev_sync = 1
activation/verify_udev_operations = $LVM_VERIFY_UDEV activation/verify_udev_operations = $LVM_VERIFY_UDEV
activation/raid_region_size = 512 activation/raid_region_size = 512
allocation/wipe_signatures_when_zeroing_new_lvs = 0 allocation/wipe_signatures_when_zeroing_new_lvs = 0
allocation/vdo_slab_size_mb = 128
backup/archive = 0 backup/archive = 0
backup/backup = 0 backup/backup = 0
devices/cache_dir = "$TESTDIR/etc" devices/cache_dir = "$TESTDIR/etc"

View File

@ -34,14 +34,17 @@ get_devs
# 'allocation/vdo_physical_threads = 0' \ # 'allocation/vdo_physical_threads = 0' \
# 'allocation/vdo_cpu_threads = 1' # 'allocation/vdo_cpu_threads = 1'
aux lvmconf 'allocation/vdo_slab_size_mb = 128'
vgcreate $SHARED -s 64K "$vg" "${DEVICES[@]}" vgcreate $SHARED -s 64K "$vg" "${DEVICES[@]}"
# Create VDO device (vdo-pool is ATM internal volume type) # Create VDO device (vdo-pool is ATM internal volume type)
lvcreate --type vdo -L4G -n $lv1 $vg/$lv2 lvcreate --type vdo -L4G -n $lv1 $vg/$lv2 >out 2>&1
check lv_field $vg/$lv1 size "1.24g" # 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} size "4.00g"
check lv_field $vg/${lv2}_vdata size "4.00g" check lv_field $vg/${lv2}_vdata size "4.00g"
lvremove -ff $vg lvremove -ff $vg