Skip to content
Commit 625c494d authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix version checks in validate_bset()



It seems btree node scan picked up a partially overwritten btree node,
and corrected the "bset version older than sb version_min" error -
resulting in an invalid superblock with a bad version_min field.

Don't run this check at all when we're in btree node scan, and when we
do run it, do something saner if the bset version is totally crazy.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent e82b3a63
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment