[lxc-devel] [distrobuilder/master] vm: Make VM size uint64

monstermunchkin on Github lxc-bot at linuxcontainers.org
Tue Feb 18 18:53:36 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200218/77521c06/attachment.bin>
-------------- next part --------------
From db92bd055c886d2d95ec65762802ed8565c205d5 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Tue, 18 Feb 2020 19:50:28 +0100
Subject: [PATCH] vm: Make VM size uint64

Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
 distrobuilder/vm.go  | 4 ++--
 shared/definition.go | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/distrobuilder/vm.go b/distrobuilder/vm.go
index 594a5a79..056d705d 100644
--- a/distrobuilder/vm.go
+++ b/distrobuilder/vm.go
@@ -18,10 +18,10 @@ type vm struct {
 	loopDevice string
 	rootFS     string
 	rootfsDir  string
-	size       uint
+	size       uint64
 }
 
-func newVM(imageFile, rootfsDir, fs string, size uint) (*vm, error) {
+func newVM(imageFile, rootfsDir, fs string, size uint64) (*vm, error) {
 	if fs == "" {
 		fs = "ext4"
 	}
diff --git a/shared/definition.go b/shared/definition.go
index 0599a3f5..6f651e81 100644
--- a/shared/definition.go
+++ b/shared/definition.go
@@ -152,7 +152,7 @@ type DefinitionTargetLXC struct {
 
 // DefinitionTargetLXDVM represents LXD VM specific options.
 type DefinitionTargetLXDVM struct {
-	Size       uint   `yaml:"size,omitempty"`
+	Size       uint64 `yaml:"size,omitempty"`
 	Filesystem string `yaml:"filesystem,omitempty"`
 }
 


More information about the lxc-devel mailing list