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:
parent
5acfbc1b2f
commit
db4accf3a3
2
fsck.go
2
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
|
||||
|
|
Loading…
Reference in New Issue