]> git.proxmox.com Git - pve-installer.git/commit - proxinstall
create lvm: improve rounding/alignment
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Nov 2022 15:29:17 +0000 (16:29 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 19 Nov 2022 09:54:20 +0000 (10:54 +0100)
commit1a5fa7b0936381314f613e525255078093f7f258
treec61c691d95d153ed0b47a169ab5b177600c99ecb
parentf1bde6ef61f81a567301eabf4ff746c9d6361c68
create lvm: improve rounding/alignment

stay in MB size range for longer to have some accuracy level we need
and mask the last 2 bits (= 4 MB) to align down to a level that
should not interfere with LVM anymore.

Otherwise, with $rest sizes that hit the second if branch < 48
regressed on LVM due to missing one extend of expected space.

Dominik verified this off-list to fix the case Stefan run into.

Reported-by: Stefan Hanreich <s.hanreich@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxinstall