[lxc-devel] [lxd/master] container/lxc: Restores update of disk limit options

tomponline on Github lxc-bot at linuxcontainers.org
Mon Jul 29 14:40:31 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 528 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190729/fb89c7c3/attachment.bin>
-------------- next part --------------
From 87dfab72df23dcca1efddaaec84c64fe51f927c0 Mon Sep 17 00:00:00 2001
From: Thomas Parrott <thomas.parrott at canonical.com>
Date: Mon, 29 Jul 2019 15:37:34 +0100
Subject: [PATCH] container/lxc: Restores update of disk limit options

Signed-off-by: Thomas Parrott <thomas.parrott at canonical.com>
---
 lxd/container_lxc.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lxd/container_lxc.go b/lxd/container_lxc.go
index 33305f7991..309a2b9600 100644
--- a/lxd/container_lxc.go
+++ b/lxd/container_lxc.go
@@ -4393,8 +4393,8 @@ func (c *containerLXC) Update(args db.ContainerArgs, userRequested bool) error {
 			return updateFields
 		}
 
-		// No fields can be live updated for this device.
-		return []string{}
+		// Legacy non-nic updatable fields.
+		return []string{"limits.max", "limits.read", "limits.write"}
 	})
 
 	// Do some validation of the config diff


More information about the lxc-devel mailing list