History log of /linux-master/fs/bcachefs/sb-errors_format.h
Revision Date Author Comments
# 33dfafa9 19-Jun-2024 Kent Overstreet <kent.overstreet@linux.dev>

bcachefs: Fix safe errors by default

i.e. the start of automatic self healing:

If errors=continue or fix_safe, we now automatically fix simple errors
without user intervention.

New error action option: fix_safe

This replaces the existing errors=ro option, which gets a new slot, i.e.
existing errors=ro users now get errors=fix_safe.

This is currently only enabled for a limited set of errors - initially
just disk accounting; errors we would never not want to fix, and we
don't want to require user intervention (i.e. to make sure a bug report
gets filed).

Errors will still be counted in the superblock, so we (developers) will
still know they've been occuring if a bug report gets filed (as bug
reports typically include the errors superblock section).

Eventually we'll be enabling this for a much wider set of errors, after
we've done thorough error injection testing.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>


# cff07e27 17-Jun-2024 Kent Overstreet <kent.overstreet@linux.dev>

bcachefs: Guard against overflowing LRU_TIME_BITS

LRUs only have 48 bits for the time field (i.e. LRU order); thus we need
overflow checks and guards.

Reported-by: syzbot+df3bf3f088dcaa728857@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>


# 9e7cfb35 17-Jun-2024 Kent Overstreet <kent.overstreet@linux.dev>

bcachefs: Check for invalid btree IDs

We can only handle btree IDs up to 62, since the btree id (plus the type
for interior btree nodes) has to fit ito a 64 bit bitmask - check for
invalid ones to avoid invalid shifts later.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>


# 759bb4ea 28-May-2024 Kent Overstreet <kent.overstreet@linux.dev>

bcachefs: Split out sb-errors_format.h

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>