The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6023
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === The recent device interface PR #5900 removed detection of disk limit related fields that meant that updates to these would not take effect until container restart. Signed-off-by: Thomas Parrott <thomas.parr...@canonical.com>
From 87dfab72df23dcca1efddaaec84c64fe51f927c0 Mon Sep 17 00:00:00 2001 From: Thomas Parrott <thomas.parr...@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.parr...@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
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel