summaryrefslogtreecommitdiff
path: root/internal/fusefrontend_reverse/rfile.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/fusefrontend_reverse/rfile.go')
-rw-r--r--internal/fusefrontend_reverse/rfile.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/fusefrontend_reverse/rfile.go b/internal/fusefrontend_reverse/rfile.go
index 4e9b5ba..8c5e5f3 100644
--- a/internal/fusefrontend_reverse/rfile.go
+++ b/internal/fusefrontend_reverse/rfile.go
@@ -34,10 +34,14 @@ func (rfs *reverseFS) NewFile(relPath string, flags uint32) (nodefs.File, fuse.S
return nil, fuse.ToStatus(err)
}
id := derivePathIV(relPath)
+ header := contentenc.FileHeader{
+ Version: contentenc.CurrentVersion,
+ Id: id,
+ }
return &reverseFile{
File: nodefs.NewDefaultFile(),
fd: fd,
- header: contentenc.FileHeader{contentenc.CurrentVersion, id},
+ header: header,
contentEnc: rfs.contentEnc,
}, fuse.OK
}