aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-08-15 13:20:40 +0200
committerJakob Unterwurzacher2018-08-15 13:20:40 +0200
commitdb4accf3a3397e2c5973aa99aae52a8f3e864e27 (patch)
tree61ad7cfc421a22735080f3c92dc279350af12084
parent5acfbc1b2ffbd156ca7a1f2cc09084a518f1d58e (diff)
fsck: don't print corse corruption offset
The exact ciphertext block number (4KiB granularity) is already printed in the doRead message. Don't cause confusion by printing the 128KiB-granularity offset as well. doRead 767: corrupt block #4: stupidgcm: message authentication failed fsck: error reading file "pa/d7/d14/f10c" (inum 767): 5=input/output error
-rw-r--r--fsck.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/fsck.go b/fsck.go
index e6a695a..fb9258c 100644
--- a/fsck.go
+++ b/fsck.go
@@ -128,7 +128,7 @@ func (ck *fsckObj) file(path string) {
result, status := f.Read(buf, off)
if !status.Ok() {
ck.markCorrupt(path)
- fmt.Printf("fsck: error reading file %q (inum %d) at offset %d: %v\n", path, inum(f), off, status)
+ fmt.Printf("fsck: error reading file %q (inum %d): %v\n", path, inum(f), status)
return
}
// EOF