aboutsummaryrefslogtreecommitdiff
path: root/internal/fusefrontend/file.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-10-17 22:16:06 +0200
committerJakob Unterwurzacher2018-10-17 22:18:07 +0200
commit4cdf6b9af94232912857138cc1ddcec520d9ceca (patch)
tree4fc93e8a79538a3316b6dae3478eb50a2700e32f /internal/fusefrontend/file.go
parent3cd892ccdee9cef6e2fd9ad14cb12f643e4a6fb3 (diff)
fusefronted: log more details on WriteAt failures
Also log inode number, fd number, offset and length. Maybe help debugging https://github.com/rfjakob/gocryptfs/issues/269 .
Diffstat (limited to 'internal/fusefrontend/file.go')
-rw-r--r--internal/fusefrontend/file.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/fusefrontend/file.go b/internal/fusefrontend/file.go
index 32f615b..9230bed 100644
--- a/internal/fusefrontend/file.go
+++ b/internal/fusefrontend/file.go
@@ -342,7 +342,8 @@ func (f *File) doWrite(data []byte, off int64) (uint32, fuse.Status) {
// Return memory to CReqPool
f.fs.contentEnc.CReqPool.Put(ciphertext)
if err != nil {
- tlog.Warn.Printf("doWrite: Write failed: %s", err.Error())
+ tlog.Warn.Printf("ino%d fh%d: doWrite: WriteAt off=%d len=%d failed: %v",
+ f.qIno.Ino, f.intFd(), cOff, len(ciphertext), err)
return 0, fuse.ToStatus(err)
}
return uint32(len(data)), fuse.OK