]> git.proxmox.com Git - pve-storage.git/commit
get bandwidth limit: improve detecting if storages are involved
authorFiona Ebner <f.ebner@proxmox.com>
Wed, 23 Nov 2022 11:40:25 +0000 (12:40 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 24 Nov 2022 07:25:12 +0000 (08:25 +0100)
commit0227e28e8eeff3e7140fa43983c9bfa3bc06af82
tree5605a98ce5bc6252168afa8ba8e98754aeaf9931
parentb9e309d667da3e46192ae77aa9e22f3445afa751
get bandwidth limit: improve detecting if storages are involved

Previously, calling with e.g. $storage_list = [undef] would lead to an
early return of $override and not consider the limit from
datacenter.cfg.

Refactoring the bandwidth limit handling for migration introduced
calls such as described above, which broke applying the limit from
datacenter.cfg for VM RAM/state migration.

Reported in the community forum:
https://forum.proxmox.com/threads/37920/post-513005

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
PVE/Storage.pm
test/run_bwlimit_tests.pl