bcachefs: Allow answering y or n to all fsck errors of given type
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 15 Apr 2023 18:26:14 +0000 (14:26 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:00 +0000 (17:10 -0400)
commit853b7393c20d5e129f2b16719102a05bbb5dc36f
treec9aabb2384e92de017639fd7cdd9cc1c5da2f46a
parent6b9857b208d7566d8bfd332a543b1dca92202c2b
bcachefs: Allow answering y or n to all fsck errors of given type

This changes the ask_yn() function used by fsck to accept Y or N,
meaning yes or no for all errors of a given type.

With this, the user can be prompted only for distinct error types -
useful when a filesystem has lots of errors.

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