Hi!

I found some error when I run unittest code in btrfs-progs.
fsck/012-leaf-corruption test corrupt leaf and check that it's recovered.
but the test was failed and demsg below

[   47.284095] BTRFS error (device loop5): device total_bytes should be at most 
27660288 but found 67108864
[   47.284207] BTRFS error (device loop5): failed to read chunk tree: -22
[   47.286465] BTRFS error (device loop5): open_ctree failed

I'm using kernel version 5.11 and there is no error in old version kernel.
I traced the kernel code and found the code that prints error message.
When it tried to mount btrfs, the function read_one_dev() failed.
I found that code added by the commit 3a160a9331112 cause this problem.
The unittest in btrfs-progs should be changed or kernel code should be patched?

Reply via email to