Skip to content

Commit

Permalink
lxd/instance/drivers/driver/qemu: Improve comment for size in Render
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Parrott <[email protected]>
  • Loading branch information
tomponline committed Dec 19, 2024
1 parent 31edea2 commit f614e77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lxd/instance/drivers/driver_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -7783,7 +7783,10 @@ func (d *qemu) 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 = d.architectureName
Expand Down

0 comments on commit f614e77

Please sign in to comment.