]> git.proxmox.com Git - pve-container.git/commit
use helper from common for cpu units/shares
authorFiona Ebner <f.ebner@proxmox.com>
Fri, 7 Oct 2022 12:41:44 +0000 (14:41 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 8 Nov 2022 15:10:47 +0000 (16:10 +0100)
commita3d114d7b218d62f7b480dccf527fb7806d6c00a
treeac433c7e5d529d9cd6e7292d0c84f00304692f0a
parent44e1405e581d35d8ad89194953095c72888a74b8
use helper from common for cpu units/shares

to make behavior more consistent with what we do for VMs. The helper
will clamp the value as needed, rather than dying.

Allows starting existing containers with an out-of-range (for the
relevant cgroup version) value. It's also possible to end up with
out-of-range values via update/create API.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/LXC.pm
src/PVE/LXC/Config.pm