From a374b0bd450bd9d12128b1269e24426564550a01 Mon Sep 17 00:00:00 2001 From: Thomas Parrott Date: Thu, 19 Dec 2024 11:00:55 +0000 Subject: [PATCH] lxd/instance/drivers/driver/lxc: Improve comment for size in Render Signed-off-by: Thomas Parrott --- lxd/instance/drivers/driver_lxc.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lxd/instance/drivers/driver_lxc.go b/lxd/instance/drivers/driver_lxc.go index 4a5748f5b868..77814c34fee5 100644 --- a/lxd/instance/drivers/driver_lxc.go +++ b/lxd/instance/drivers/driver_lxc.go @@ -3260,7 +3260,10 @@ func (d *lxc) Render(options ...func(response any) error) (state any, etag any, LastUsedAt: d.lastUsedDate, Name: strings.SplitN(d.name, "/", 2)[1], Stateful: d.stateful, - Size: -1, // Default to uninitialised/error state (0 means no CoW usage). + + // Default to uninitialised/error state (0 means no CoW usage). + // The size can then be populated optionally via the options argument. + Size: -1, } snapState.Architecture = architectureName