Re: [PATCH] btrfs: Allow read-only mount with corrupted extent tree

From: Josef Bacik
Date: Wed Aug 11 2021 - 16:41:07 EST


On 8/11/21 4:07 PM, Dāvis Mosāns wrote:
Currently if there's any corruption at all in extent tree
(eg. even single bit) then mounting will fail with:
"failed to read block groups: -5" (-EIO)
It happens because we immediately abort on first error when
searching in extent tree for block groups.

Now with this patch if `ignorebadroots` option is specified
then we handle such case and continue by removing already
created block groups and creating dummy block groups.


Already done and queue'ed up for the next release

btrfs: rescue: allow ibadroots to skip bad extent tree when reading block group items

thanks,

Josef