diff options
author | Romain | 2016-10-05 00:03:47 +1100 |
---|---|---|
committer | rfjakob | 2016-10-04 15:03:47 +0200 |
commit | db72a4489d919760b6de3d4077f49348732f79c4 (patch) | |
tree | f84b67523ef87b26e5a250d544ad40cdafd09abb /internal/fusefrontend_reverse | |
parent | b068ffbff9ff8ca962eb8fe0f404fc92f92ea859 (diff) |
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`.
Diffstat (limited to 'internal/fusefrontend_reverse')
-rw-r--r-- | internal/fusefrontend_reverse/rfs.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |