From 0b36edae585f25481bf354053e9079671b2fca30 Mon Sep 17 00:00:00 2001 From: Arthur Barr Date: Thu, 31 May 2018 11:55:32 +0100 Subject: [PATCH] Convert statfs.Type for s390x (#98) * Change apt URL for non-x86_64 platforms * Convert statfs.Type for s390x --- cmd/runmqserver/mqconfig_linux.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/runmqserver/mqconfig_linux.go b/cmd/runmqserver/mqconfig_linux.go index d0ec357..bf01efd 100644 --- a/cmd/runmqserver/mqconfig_linux.go +++ b/cmd/runmqserver/mqconfig_linux.go @@ -19,6 +19,7 @@ package main import ( "fmt" + "golang.org/x/sys/unix" ) @@ -41,7 +42,8 @@ func checkFS(path string) error { log.Println(err) return nil } - t := fsTypes[statfs.Type] + // Use a type conversion to make type an int64. On s390x it's a uint32. + t := fsTypes[int64(statfs.Type)] switch t { case "aufs", "overlayfs", "tmpfs": return fmt.Errorf("%v uses unsupported filesystem type: %v", path, t)