diff options
author | Jakob Unterwurzacher | 2017-04-01 14:17:54 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2017-04-01 14:17:54 +0200 |
commit | 3cd18f288f487f0dfc8bd8de1288ed3b92cc5ca5 (patch) | |
tree | 4dbfeb9c279126a01070c23d3ffc36444389331c /internal/fusefrontend_reverse/virtualfile.go | |
parent | df07acf867484c728326c28dd91ed2e5f2e95bb2 (diff) |
fusefrontend_reverse: add comment to newVirtualFile
...and improve and comment variable naming in findLongnameParent.
No semantic changes.
Diffstat (limited to 'internal/fusefrontend_reverse/virtualfile.go')
-rw-r--r-- | internal/fusefrontend_reverse/virtualfile.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/fusefrontend_reverse/virtualfile.go b/internal/fusefrontend_reverse/virtualfile.go index 04de634..d5c4491 100644 --- a/internal/fusefrontend_reverse/virtualfile.go +++ b/internal/fusefrontend_reverse/virtualfile.go @@ -28,6 +28,10 @@ type virtualFile struct { ino uint64 } +// newVirtualFile creates a new in-memory file that does not have a representation +// on disk. "content" is the file content. Timestamps and file owner are copied +// from "parentFile" (absolute plaintext path). For a "gocryptfs.diriv" file, you +// would use the parent directory as "parentFile". func (rfs *ReverseFS) newVirtualFile(content []byte, parentFile string) (nodefs.File, fuse.Status) { return &virtualFile{ File: nodefs.NewDefaultFile(), |