summaryrefslogtreecommitdiff
path: root/internal/fusefrontend/file.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-10-25 21:19:37 +0200
committerJakob Unterwurzacher2016-10-25 21:19:37 +0200
commit6538dc15afb7a7a159f070a57a1e9073ca076661 (patch)
treea0fc2ae9d4ef863502c3b44f2671265e1369790d /internal/fusefrontend/file.go
parentf41d2e067679c4c6a8b0b5dcb52a113918806e48 (diff)
fusefrontend: rename "createsHole" to clearer "createsCiphertextHole"
...and add comments for what is happening.
Diffstat (limited to 'internal/fusefrontend/file.go')
-rw-r--r--internal/fusefrontend/file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fusefrontend/file.go b/internal/fusefrontend/file.go
index 35c898d..9fb9f7e 100644
--- a/internal/fusefrontend/file.go
+++ b/internal/fusefrontend/file.go
@@ -306,7 +306,7 @@ func (f *file) Write(data []byte, off int64) (uint32, fuse.Status) {
return 0, fuse.ToStatus(err)
}
plainSize := f.contentEnc.CipherSizeToPlainSize(uint64(fi.Size()))
- if f.createsHole(plainSize, off) {
+ if f.createsCiphertextHole(plainSize, off) {
status := f.zeroPad(plainSize)
if status != fuse.OK {
tlog.Warn.Printf("zeroPad returned error %v", status)