diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-09-06 14:57:43 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-09-06 15:19:51 +0200 |
commit | 8d5b7de54f21ce5e34d533599f9d5a42f2977cd5 (patch) | |
tree | 98146f063d46144e8ab3d83d4853067bb5036ce6 /scripts | |
parent | 79427151dc5ffb5faff133c57e058acbad00dd10 (diff) | |
download | lvm2-8d5b7de54f21ce5e34d533599f9d5a42f2977cd5.tar.gz |
vdo: lvm_import_vdo fix max_discard size
Use correct 4K units in lvm2 for max_discard VDO option.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/lvm_import_vdo.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |