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

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 Parrott <thomas.parr...@canonical.com>
From a1418065d0ae9e2737ac83fac9527c910d3ad90d Mon Sep 17 00:00:00 2001
From: Thomas Parrott <thomas.parr...@canonical.com>
Date: Tue, 10 Mar 2020 17:28:32 +0000
Subject: [PATCH] lxd/util/fs: Fixes go vet conversion from int64 to string
 yields a string of one rune error

Signed-off-by: Thomas Parrott <thomas.parr...@canonical.com>
---
 lxd/util/fs.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lxd/util/fs.go b/lxd/util/fs.go
index 2b1ddf2488..0b9dfe9aac 100644
--- a/lxd/util/fs.go
+++ b/lxd/util/fs.go
@@ -1,6 +1,8 @@
 package util
 
 import (
+       "fmt"
+
        "golang.org/x/sys/unix"
 
        "github.com/lxc/lxd/shared/logger"
@@ -39,6 +41,6 @@ func FilesystemDetect(path string) (string, error) {
                return "nfs", nil
        default:
                logger.Debugf("Unknown backing filesystem type: 0x%x", fs.Type)
-               return string(fs.Type), nil
+               return fmt.Sprintf("0x%x", fs.Type), nil
        }
 }
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to