[pve-devel] [PATCH container] fix #2568: hotplug: fix typo 'cpu.shares'

Oguz Bektas o.bektas at proxmox.com
Mon Jan 27 18:44:00 CET 2020


Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
---
 src/PVE/LXC/Config.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/LXC/Config.pm b/src/PVE/LXC/Config.pm
index 760ec23..eec6b38 100644
--- a/src/PVE/LXC/Config.pm
+++ b/src/PVE/LXC/Config.pm
@@ -1188,7 +1188,7 @@ sub vmconfig_hotplug_pending {
 		PVE::LXC::write_cgroup_value("cpu", $vmid, "cpu.cfs_period_us", -1);
 		PVE::LXC::write_cgroup_value("cpu", $vmid, "cpu.cfs_quota_us", -1);
 	    } elsif ($opt eq 'cpuunits') {
-		PVE::LXC::write_cgroup_value("cpu", $vmid, "cpu.shared", $confdesc->{cpuunits}->{default});
+		PVE::LXC::write_cgroup_value("cpu", $vmid, "cpu.shares", $confdesc->{cpuunits}->{default});
 	    } elsif ($opt =~ m/^net(\d)$/) {
 		my $netid = $1;
 		PVE::Network::veth_delete("veth${vmid}i$netid");
-- 
2.20.1




More information about the pve-devel mailing list