I'll try to improve that tomorrow.
- Mail original -
De: dietmar diet...@proxmox.com
À: aderumier aderum...@odiso.com, pve-devel pve-devel@pve.proxmox.com
Envoyé: Dimanche 21 Juin 2015 10:26:34
Objet: Re: [pve-devel] [PATCH] lxc: add hotplug memory cpus cgroups value V2
+
+sub
Signed-off-by: Alexandre Derumier aderum...@odiso.com
---
src/PVE/LXC.pm | 65 --
1 file changed, 63 insertions(+), 2 deletions(-)
diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
index 068b46f..0f21bcb 100644
--- a/src/PVE/LXC.pm
+++
+
+sub hotplug_lxc_config {
+my ($vmid, $conf, $param, $delete) = @_;
+
+if (defined($delete)) {
+ foreach my $opt (@$delete) {
+ if ($opt eq 'swap') {
+ cgroups_write(memory, $vmid, memory.memsw.limit_in_bytes,
-1);
+ } elsif ($opt =~ m/^net\d$/)