[pve-devel] [PATCH container 1/2] config: allow deleting cpuunits and cpulimit
Wolfgang Bumiller
w.bumiller at proxmox.com
Wed Mar 9 10:01:13 CET 2016
These were simply missing.
---
src/PVE/LXC/Config.pm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/PVE/LXC/Config.pm b/src/PVE/LXC/Config.pm
index 2f656e5..04ce9ef 100644
--- a/src/PVE/LXC/Config.pm
+++ b/src/PVE/LXC/Config.pm
@@ -732,6 +732,12 @@ sub update_pct_config {
$opt eq 'tty' || $opt eq 'console' || $opt eq 'cmode') {
next if $hotplug_error->($opt);
delete $conf->{$opt};
+ } elsif ($opt eq 'cpulimit') {
+ next if $hotplug_error->($opt); # FIXME: hotplug
+ delete $conf->{$opt};
+ } elsif ($opt eq 'cpuunits') {
+ PVE::LXC::write_cgroup_value("cpu", $vmid, "cpu.shares", $confdesc->{cpuunits}->{default});
+ delete $conf->{$opt};
} elsif ($opt =~ m/^net(\d)$/) {
delete $conf->{$opt};
next if !$running;
--
2.1.4
More information about the pve-devel
mailing list