bcachefs: Add an option for rebuilding the replicas section
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 20 Jul 2020 19:51:05 +0000 (15:51 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:42 +0000 (17:08 -0400)
commitf621e1521c3ff5ea295a97d7d71cdbe84f496467
tree2edbfcb85c5d74f735ef81c60a537da0d9a42aab
parente6d1161530bcd632ad10b6aa0ad511abb146dbcc
bcachefs: Add an option for rebuilding the replicas section

There is a bug where we cnan end up clearing the data_has field in the
superblock members section, which causes us to skip reading the journal
and thus journal replay fails. This option tells the recovery path to
not trust those fields.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/opts.h
fs/bcachefs/recovery.c