]> git.proxmox.com Git - pve-installer.git/commit
fix space calculation for small disks for pve product
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 22 Jun 2023 13:57:13 +0000 (15:57 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Jun 2023 14:26:49 +0000 (16:26 +0200)
commit120bc64902d25b96ba43dbd955990508b4032039
treeb5d4c317282785cebdb3d32318df4f64ad590220
parent98c856e86a8431f795eb2508f7f2c9d34f2b0c22
fix space calculation for small disks for pve product

The convoluted calculation logic in case the disks is 8GB leads to
datasize becoming 16EiB further down:
* after calculating and removing the rootsize from $rest, $rest becomes
  smaller than $space (which should be the minimal non-used space in the
  volume-group) - this leads to a negative value, which overflows in
  the `& ~0xFFF` opration.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Proxmox/Install.pm