summaryrefslogtreecommitdiff
path: root/internal/fusefrontend
diff options
context:
space:
mode:
authorYuta Hayashibe2022-05-04 18:06:20 +0900
committerrfjakob2022-06-26 10:59:06 +0200
commite9ecff7f07aeb1efe0edec7b4b050ce3c0ef75f8 (patch)
tree94d0da7da7c22b65ccfa5cc99cb7e9d5e6322d07 /internal/fusefrontend
parentc9e4e4f74150d2734496e90a4c442a17b79f52c1 (diff)
Fix typos
Diffstat (limited to 'internal/fusefrontend')
-rw-r--r--internal/fusefrontend/file.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/fusefrontend/file.go b/internal/fusefrontend/file.go
index 3ce1b1e..2f111fd 100644
--- a/internal/fusefrontend/file.go
+++ b/internal/fusefrontend/file.go
@@ -207,8 +207,8 @@ func (f *File) doRead(dst []byte, off uint64, length uint64) ([]byte, syscall.Er
plaintext, err := f.contentEnc.DecryptBlocks(ciphertext, firstBlockNo, fileID)
f.rootNode.contentEnc.CReqPool.Put(ciphertext)
if err != nil {
- curruptBlockNo := firstBlockNo + f.contentEnc.PlainOffToBlockNo(uint64(len(plaintext)))
- tlog.Warn.Printf("doRead %d: corrupt block #%d: %v", f.qIno.Ino, curruptBlockNo, err)
+ corruptBlockNo := firstBlockNo + f.contentEnc.PlainOffToBlockNo(uint64(len(plaintext)))
+ tlog.Warn.Printf("doRead %d: corrupt block #%d: %v", f.qIno.Ino, corruptBlockNo, err)
return nil, syscall.EIO
}