diff options
author | Jakob Unterwurzacher | 2017-05-01 18:44:18 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2017-05-01 18:44:18 +0200 |
commit | 1a89919d80f28ca4126d70bcc1d617145abc2695 (patch) | |
tree | 3b781a5e5deafc53339be417acc5797a130cf05b | |
parent | 9768376bd1961a5aa0fbf7f08de0601322664fc3 (diff) |
contentenc: downgrade "interrupted write?" warning to debug
This can happen during normal operation, and is harmless since
14038a1644f17f50b113a05d09a2a0a3b3e973b2
"fusefrontend: readFileID: reject files that consist only of a header"
causes dormant header-only files to be rewritten on the next write.
-rw-r--r-- | internal/contentenc/offsets.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/contentenc/offsets.go b/internal/contentenc/offsets.go index 5ad0da4..fdeb583 100644 --- a/internal/contentenc/offsets.go +++ b/internal/contentenc/offsets.go @@ -39,7 +39,8 @@ func (be *ContentEnc) CipherSizeToPlainSize(cipherSize uint64) uint64 { } if cipherSize == HeaderLen { - tlog.Warn.Printf("cipherSize %d == header size: interrupted write?\n", cipherSize) + // This can happen between createHeader() and Write() and is harmless. + tlog.Debug.Printf("cipherSize %d == header size: interrupted write?\n", cipherSize) return 0 } |