]> git.dujemihanovic.xyz Git - linux.git/commit
bcachefs: Disable errors=panic for BCH_IOCTL_FSCK_OFFLINE
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 6 Apr 2024 02:30:30 +0000 (22:30 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 6 Apr 2024 17:50:25 +0000 (13:50 -0400)
commit05801b6526156aefe55c0440fab877109c9a89c5
tree61bed46f185cbf038df837c7d265ee3e0183c7ea
parent374b3d38feff4a1cb4ecadace9bd915ffd91fe4b
bcachefs: Disable errors=panic for BCH_IOCTL_FSCK_OFFLINE

BCH_IOCTL_FSCK_OFFLINE allows the userspace fsck tool to use the kernel
implementation of fsck - primarily when the kernel version is a better
version match.

It should look and act exactly like the normal userspace fsck that the
user expected to be invoking, so errors should never result in a kernel
panic.

We may want to consider further restricting errors=panic - it's only
intended for debugging in controlled test environments, it should have
no purpose it normal usage.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/chardev.c