summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2019-01-28 22:05:17 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2019-01-28 22:17:27 +0100
commitab1fd0cb37b75311e1ec4e13bbaea4a214b43285 (patch)
treed54fde660dd8aee0353ad941e2294f926ab3fd6c
parent78dd9d820da44c6b9907b481231745590e94613d (diff)
downloadlvm2-ab1fd0cb37b75311e1ec4e13bbaea4a214b43285.tar.gz
tests: rounding for pools changed to power of 2
Even with 64K chunk support, lvm2 will target power-of-2 chunks.
-rw-r--r--test/shell/lvcreate-thin-big.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/shell/lvcreate-thin-big.sh b/test/shell/lvcreate-thin-big.sh
index 0625a598c..595b8a937 100644
--- a/test/shell/lvcreate-thin-big.sh
+++ b/test/shell/lvcreate-thin-big.sh
@@ -75,12 +75,10 @@ check lv_field $vg/pool1_tmeta size "2.50m"
check lv_field $vg/pool2_tmeta size "3.75m"
lvremove -ff $vg
-# Block size of multiple 64KB needs >= 1.4
-if aux have_thin 1 4 0 ; then
-# Test chunk size is rounded to 64KB boundary
+# Test chunk size is rounded to power-of-2
lvcreate -L10G --poolmetadatasize 4M -T $vg/pool
-check lv_field $vg/pool chunk_size "192.00k"
-fi
+check lv_field $vg/pool chunk_size "256.00k"
+
# Old thinpool target required rounding to power of 2
aux lvmconf "global/thin_disabled_features = [ \"block_size\" ]"
lvcreate -L10G --poolmetadatasize 4M -T $vg/pool_old