]> git.proxmox.com Git - pve-storage.git/commit - PVE/Storage.pm
bwlimit: apply limits when there's no override
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 9 Feb 2018 08:35:59 +0000 (09:35 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 7 Mar 2018 13:19:07 +0000 (14:19 +0100)
commit77445e9b80021b54ddbb5fcc930a34ccb9a56d05
tree67becf5a63b5432a8b398dd205b3ec6677601759
parent6ea1a3f3fe8d132743383a5b0d4bad350b1428b2
bwlimit: apply limits when there's no override

Before, 'undef' was equivalent to unlimited, but '0' is the
"explicitly unlimited" value, so if the user doesn't request
an override, apply limits as if the user was unprivileged
(otherwise there's no way for privileged users to explicitly
ask to not override the configured limits).

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
PVE/Storage.pm
test/run_bwlimit_tests.pl