diff --git a/utils.go b/utils.go index 45aede7..2dbd66c 100644 --- a/utils.go +++ b/utils.go @@ -15,7 +15,7 @@ func isBtrfs(path string) (bool, error) { if err := syscall.Statfs(path, &stfs); err != nil { return false, &os.PathError{Op: "statfs", Path: path, Err: err} } - return stfs.Type == SuperMagic, nil + return int64(stfs.Type) == SuperMagic, nil } func findMountRoot(path string) (string, error) {