Skip to content

checksum verify failure ignored as "no error found"  #816

Open
@tribbloid

Description

@tribbloid

Encountered on v6.2 (Debian 12) and v6.7 (Fedora 40)

sample output:

$ sudo btrfs check --repair --check-data-csum /dev/disk/by-label/Home
enabling repair mode
WARNING:

	Do not use --repair unless you are advised to do so by a developer
	or an experienced user, and then only after having accepted that no
	fsck can successfully repair all types of filesystem corruption. E.g.
	some software or hardware bugs can fatally damage a volume.
	The operation will start in 10 seconds.
	Use Ctrl-C to stop it.
10 9 8 7 6 5 4 3 2 1
Starting repair.
Opening filesystem to check...
Checking filesystem on /dev/disk/by-label/Home
UUID: a5c81116-78a5-4edb-b57c-b08e90e1391b
[1/7] checking root items
Fixed 0 roots.
[2/7] checking extents
checksum verify failed on 58720256 wanted 0x8f087114 found 0xb87d3f03
No device size related problem found
[3/7] checking free space cache
[4/7] checking fs roots
[5/7] checking csums against data
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
found 423218954240 bytes used, no error found
total csum bytes: 19136412
total tree bytes: 2665676800
total fs tree bytes: 2427846656
total extent tree bytes: 210829312
btree space waste bytes: 549918529
file data blocks allocated: 488460259328
 referenced 428168486912

"no error found" is self-contradicting with "checksum verify failed on 58720256 wanted 0x8f087114 found 0xb87d3f03"

also no repair was attempted despite --repair option is used

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcheckChanges in btrfs check

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions