mirror of
https://github.com/dennwc/btrfs
synced 2025-03-11 06:48:27 +00:00
Fix "constant 2435016766 overflows int32" on GOARCH=arm
Fix #1 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
parent
d917b30ff0
commit
ee67271a4c
2
utils.go
2
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user