guyuming Apprentice
Joined: 19 Nov 2020 Posts: 253
|
Posted: Sun Nov 05, 2023 9:49 am Post subject: how to get file names for btrfs blocks with error csum? |
|
|
btrfs check show me two csum errors, but is there any tool telling by which files these bad blocks used?
Code: | guyuming@localhost ~ $ sudo btrfs check --check-data-csum /dev/sdc1
Opening filesystem to check...
Checking filesystem on /dev/sdc1
UUID: 7b58b896-933b-4fde-8c94-0b7fa235b09e
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space tree
[4/7] checking fs roots
[5/7] checking csums against data
mirror 1 bytenr 737206272 csum 0x8b80f79c expected csum 0xe975fb78
mirror 1 bytenr 737210368 csum 0x2b6ac2de expected csum 0x8e36d290
ERROR: errors found in csum tree
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
found 3047649280 bytes used, error(s) found
total csum bytes: 2840876
total tree bytes: 31522816
total fs tree bytes: 25133056
total extent tree bytes: 2621440
btree space waste bytes: 7159640
file data blocks allocated: 13349810176
referenced 2924126208 |
UPDATE: i find Input/Output error for this in dmesg, and get inode number there. Then i get file name with find -inum |
|