1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-23 21:35:29 +03:00

tests: update parm for new kernel

This commit is contained in:
Zdenek Kabelac 2018-11-18 22:04:00 +01:00
parent 71b9cb8e0f
commit 9d7afaaab8

View File

@ -90,7 +90,9 @@ lvchange -an $vg/pool
# Consume more then (100% - 4MiB) out of 32MiB metadata volume (>87.5%) # Consume more then (100% - 4MiB) out of 32MiB metadata volume (>87.5%)
# (Test for less than 4MiB free space in metadata, which is less than 25%) # (Test for less than 4MiB free space in metadata, which is less than 25%)
fake_metadata_ 7400 2 >data DATA=7200 # Newer version of thin-pool have hidden reserve, so use lower value
aux target_at_least dm-thin-pool 1 20 0 || DATA=7400
fake_metadata_ "$DATA" 2 >data
"$LVM_TEST_THIN_RESTORE_CMD" -i data -o "$DM_DEV_DIR/mapper/$vg-$lv2" "$LVM_TEST_THIN_RESTORE_CMD" -i data -o "$DM_DEV_DIR/mapper/$vg-$lv2"
# Swap volume with restored fake metadata # Swap volume with restored fake metadata
lvconvert -y --chunksize 64k --thinpool $vg/pool --poolmetadata $vg/$lv2 lvconvert -y --chunksize 64k --thinpool $vg/pool --poolmetadata $vg/$lv2