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
This commit is contained in:
Jakob Unterwurzacher 2018-08-15 13:20:40 +02:00
parent 5acfbc1b2f
commit db4accf3a3
1 changed files with 1 additions and 1 deletions

View File

@ -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