All of lore.kernel.org
 help / color / mirror / Atom feed
* main - vdo: lvm_import_vdo fix max_discard size
@ 2021-09-06 13:25 Zdenek Kabelac
  0 siblings, 0 replies; only message in thread
From: Zdenek Kabelac @ 2021-09-06 13:25 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=8d5b7de54f21ce5e34d533599f9d5a42f2977cd5
Commit:        8d5b7de54f21ce5e34d533599f9d5a42f2977cd5
Parent:        79427151dc5ffb5faff133c57e058acbad00dd10
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Mon Sep 6 14:57:43 2021 +0200
Committer:     Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Mon Sep 6 15:19:51 2021 +0200

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(-)

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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-06 13:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-06 13:25 main - vdo: lvm_import_vdo fix max_discard size Zdenek Kabelac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.