summaryrefslogtreecommitdiff
path: root/internal/fusefrontend/file.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-11-16 21:36:27 +0100
committerJakob Unterwurzacher2019-11-16 21:36:27 +0100
commitbb6155a51ff7a521d948ec58723d211bfaf8a731 (patch)
tree5df11c56ba65a6e69567bbc1855e20084bc3d38e /internal/fusefrontend/file.go
parente5d5ab397384001566d573a13a142ed1bc2bc2aa (diff)
fusefrontend: use inummap
translate inode numbers on different devices to fix collisions. Fixes https://github.com/rfjakob/gocryptfs/issues/435
Diffstat (limited to 'internal/fusefrontend/file.go')
-rw-r--r--internal/fusefrontend/file.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/fusefrontend/file.go b/internal/fusefrontend/file.go
index 74a56c3..83e39be 100644
--- a/internal/fusefrontend/file.go
+++ b/internal/fusefrontend/file.go
@@ -462,6 +462,7 @@ func (f *File) GetAttr(a *fuse.Attr) fuse.Status {
if err != nil {
return fuse.ToStatus(err)
}
+ f.fs.inumMap.TranslateStat(&st)
a.FromStat(&st)
a.Size = f.contentEnc.CipherSizeToPlainSize(a.Size)
if f.fs.args.ForceOwner != nil {