aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain2016-10-05 00:03:47 +1100
committerrfjakob2016-10-04 15:03:47 +0200
commitdb72a4489d919760b6de3d4077f49348732f79c4 (patch)
treef84b67523ef87b26e5a250d544ad40cdafd09abb
parentb068ffbff9ff8ca962eb8fe0f404fc92f92ea859 (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`.
-rw-r--r--internal/fusefrontend_reverse/rfs.go2
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 {