From db72a4489d919760b6de3d4077f49348732f79c4 Mon Sep 17 00:00:00 2001 From: Romain Date: Wed, 5 Oct 2016 00:03:47 +1100 Subject: fusefrontend_reverse cast Stat_t.Dev to uint64 (#44) The [Stat_t.Dev](https://golang.org/pkg/syscall/#Stat_t) docs say `Dev` is a `unit64`, but on [macOS amd64](https://golang.org/src/syscall/ztypes_darwin_amd64.go) it's an `int32`.--- internal/fusefrontend_reverse/rfs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/fusefrontend_reverse') diff --git a/internal/fusefrontend_reverse/rfs.go b/internal/fusefrontend_reverse/rfs.go index 1b5e812..e49807b 100644 --- a/internal/fusefrontend_reverse/rfs.go +++ b/internal/fusefrontend_reverse/rfs.go @@ -135,7 +135,7 @@ func (rfs *reverseFS) inoAwareStat(relPlainPath string) (*fuse.Attr, fuse.Status // The file has hard links. We have to give it a stable inode number so // tar or rsync can find them. if fi.Mode().IsRegular() && st.Nlink > 1 { - di := devIno{st.Dev, st.Ino} + di := devIno{uint64(st.Dev), st.Ino} rfs.inoMapLock.Lock() stableIno := rfs.inoMap[di] if stableIno == 0 { -- cgit v1.2.3