Convert statfs.Type for s390x (#98)
* Change apt URL for non-x86_64 platforms * Convert statfs.Type for s390x
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user