]> sourceware.org Git - lvm2.git/commitdiff
vdo: lvm_import_vdo fix max_discard size
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 6 Sep 2021 12:57:43 +0000 (14:57 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 6 Sep 2021 13:19:51 +0000 (15:19 +0200)
Use correct 4K units in lvm2 for max_discard VDO option.

scripts/lvm_import_vdo.sh

index ae28929495dc9e9aecae1d9e6d99bd818f056d9a..65d2eee382de407c2393775fd6e3abec0876f795 100755 (executable)
@@ -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
This page took 0.03969 seconds and 5 git commands to generate.