diff --git a/pkg/types/getfstype.go b/pkg/types/getfstype.go index a7ee249cd..67e018782 100644 --- a/pkg/types/getfstype.go +++ b/pkg/types/getfstype.go @@ -103,7 +103,8 @@ func GetFSType(path string) (string, error) { return "", err } - fsType, ok := fsTypeMapping[buf.Type] + fsType, ok := fsTypeMapping[int64(buf.Type)] //nolint:unconvert + if !ok { return "", fmt.Errorf("unknown fstype %d", buf.Type) }