The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/distrobuilder/pull/278

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) ===
Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
From db92bd055c886d2d95ec65762802ed8565c205d5 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.h...@canonical.com>
Date: Tue, 18 Feb 2020 19:50:28 +0100
Subject: [PATCH] vm: Make VM size uint64

Signed-off-by: Thomas Hipp <thomas.h...@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"`
 }
 
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to