From 1a89919d80f28ca4126d70bcc1d617145abc2695 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 1 May 2017 18:44:18 +0200 Subject: [PATCH] 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. --- internal/contentenc/offsets.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }