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 (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"golang.org/x/sys/unix"
|
"golang.org/x/sys/unix"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -41,7 +42,8 @@ func checkFS(path string) error {
|
|||||||
log.Println(err)
|
log.Println(err)
|
||||||
return nil
|
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 {
|
switch t {
|
||||||
case "aufs", "overlayfs", "tmpfs":
|
case "aufs", "overlayfs", "tmpfs":
|
||||||
return fmt.Errorf("%v uses unsupported filesystem type: %v", path, t)
|
return fmt.Errorf("%v uses unsupported filesystem type: %v", path, t)
|
||||||
|
|||||||
Reference in New Issue
Block a user