29 lines
958 B
Diff
29 lines
958 B
Diff
From 60eb37394b536e3b969496611ff4b59b71123476 Mon Sep 17 00:00:00 2001
|
|
From: Zdenek Kabelac <zkabelac@redhat.com>
|
|
Date: Mon, 6 Sep 2021 14:57:43 +0200
|
|
Subject: [PATCH 2/5] vdo: lvm_import_vdo fix max_discard size
|
|
|
|
Use correct 4K units in lvm2 for max_discard VDO option.
|
|
|
|
(cherry picked from commit 8d5b7de54f21ce5e34d533599f9d5a42f2977cd5)
|
|
---
|
|
scripts/lvm_import_vdo.sh | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/scripts/lvm_import_vdo.sh b/scripts/lvm_import_vdo.sh
|
|
index bc73306..f8dd71f 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
|
|
--
|
|
1.8.3.1
|
|
|