diff options
| author | Qu Wenruo <[email protected]> | 2022-06-19 13:47:56 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2022-07-25 15:45:38 +0000 |
| commit | 8f0ed7d4e7bd87c9207a59d6d887777f632a5ed5 (patch) | |
| tree | 1952a4d24abe55445d885609448377c3561da5d3 /fs/btrfs/dev-replace.c | |
| parent | btrfs: replace unnecessary goto with direct return at cow_file_range() (diff) | |
| download | kernel-8f0ed7d4e7bd87c9207a59d6d887777f632a5ed5.tar.gz kernel-8f0ed7d4e7bd87c9207a59d6d887777f632a5ed5.zip | |
btrfs: output mirror number for bad metadata
When handling a real world transid mismatch image, it's hard to know
which copy is corrupted, as the error messages just look like this:
BTRFS warning (device dm-3): checksum verify failed on 30408704 wanted 0xcdcdcdcd found 0x3c0adc8e level 0
BTRFS warning (device dm-3): checksum verify failed on 30408704 wanted 0xcdcdcdcd found 0x3c0adc8e level 0
BTRFS warning (device dm-3): checksum verify failed on 30408704 wanted 0xcdcdcdcd found 0x3c0adc8e level 0
BTRFS warning (device dm-3): checksum verify failed on 30408704 wanted 0xcdcdcdcd found 0x3c0adc8e level 0
We don't even know if the retry is caused by btrfs or the VFS retry.
To make things a little easier to read, add mirror number for all
related tree block read errors.
So the above messages would look like this:
BTRFS warning (device dm-3): checksum verify failed on logical 30408704 mirror 1 wanted 0xcdcdcdcd found 0x3c0adc8e level 0
BTRFS warning (device dm-3): checksum verify failed on logical 30408704 mirror 2 wanted 0xcdcdcdcd found 0x3c0adc8e level 0
BTRFS warning (device dm-3): checksum verify failed on logical 30408704 mirror 1 wanted 0xcdcdcdcd found 0x3c0adc8e level 0
BTRFS warning (device dm-3): checksum verify failed on logical 30408704 mirror 2 wanted 0xcdcdcdcd found 0x3c0adc8e level 0
Signed-off-by: Qu Wenruo <[email protected]>
[ update messages, add "logical" ]
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
