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)