From 8d5b7de54f21ce5e34d533599f9d5a42f2977cd5 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 6 Sep 2021 14:57:43 +0200 Subject: vdo: lvm_import_vdo fix max_discard size Use correct 4K units in lvm2 for max_discard VDO option. --- scripts/lvm_import_vdo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/lvm_import_vdo.sh b/scripts/lvm_import_vdo.sh index ae2892949..65d2eee38 100755 --- a/scripts/lvm_import_vdo.sh +++ b/scripts/lvm_import_vdo.sh @@ -320,7 +320,7 @@ allocation { vdo_logical_threads = $vdo_logicalThreads vdo_physical_threads = $vdo_physicalThreads vdo_write_policy = $vdo_writePolicy - vdo_max_discard = $(( $(get_kb_size_with_unit_ "$vdo_maxDiscardSize") * 1024 )) + vdo_max_discard = $(( $(get_kb_size_with_unit_ "$vdo_maxDiscardSize") / 4 )) vdo_pool_header_size = 0 } EOF -- cgit v1.2.1