]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: fsck: Improve check_key_has_inode()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 15 Jun 2025 16:09:24 +0000 (12:09 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 16 Jun 2025 23:04:44 +0000 (19:04 -0400)
commitf2a701fd94f161bdca7537284ba218c20181451e
tree85b2f55c76a006c90a650b266e74d45602584dbd
parent03208bd06a61bc2ebc423b6485cbcffecd37af36
bcachefs: fsck: Improve check_key_has_inode()

Print out more info when we find a key (extent, dirent, xattr) for a
missing inode - was there a good inode in an older snapshot, full(ish)
list of keys for that missing inode, so we can make better decisions on
how to repair.

If it looks like it should've been deleted, autofix it. If we ever hit
the non-autofix cases, we'll want to write more repair code (possibly
reconstituting the inode).

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fsck.c
fs/bcachefs/sb-errors_format.h