From 6538dc15afb7a7a159f070a57a1e9073ca076661 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 25 Oct 2016 21:19:37 +0200 Subject: fusefrontend: rename "createsHole" to clearer "createsCiphertextHole" ...and add comments for what is happening. --- internal/fusefrontend/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/fusefrontend/file.go') 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) -- cgit v1.2.3