summaryrefslogtreecommitdiff
path: root/internal/fusefrontend_reverse
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-09-20 17:21:29 +0200
committerJakob Unterwurzacher2016-09-25 16:43:17 +0200
commit19322484468556b15e7634a6c1fea82d9c3f23eb (patch)
treeb60bbdba49c74cae5b8c3711587d190eed51598e /internal/fusefrontend_reverse
parentce22ab36e1696b1fbbad077b0cb16a7278a20265 (diff)
reverse: get rid of debug message
Diffstat (limited to 'internal/fusefrontend_reverse')
-rw-r--r--internal/fusefrontend_reverse/rfile.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/fusefrontend_reverse/rfile.go b/internal/fusefrontend_reverse/rfile.go
index 26885a4..75ebfd9 100644
--- a/internal/fusefrontend_reverse/rfile.go
+++ b/internal/fusefrontend_reverse/rfile.go
@@ -18,6 +18,7 @@ var zeroFileHeader *contentenc.FileHeader
func init() {
zeroFileHeader = contentenc.RandomHeader()
+ // Overwrite with zeros
zeroFileHeader.Id = make([]byte, contentenc.HEADER_ID_LEN)
}
@@ -53,11 +54,10 @@ func (rf *reverseFile) readBackingFile(off uint64, length uint64) (out []byte, e
// Read the backing plaintext in one go
alignedOffset, alignedLength := contentenc.JointPlaintextRange(blocks)
- tlog.Warn.Printf("alignedOffset=%d, alignedLength=%d\n", alignedOffset, alignedLength)
plaintext := make([]byte, int(alignedLength))
n, err := rf.fd.ReadAt(plaintext, int64(alignedOffset))
if err != nil && err != io.EOF {
- tlog.Warn.Printf("reverseFile.readFile: ReadAt: %s", err.Error())
+ tlog.Warn.Printf("readBackingFile: ReadAt: %s", err.Error())
return nil, err
}
// Truncate buffer down to actually read bytes