From 853b7393c20d5e129f2b16719102a05bbb5dc36f Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sat, 15 Apr 2023 14:26:14 -0400 Subject: 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 --- fs/bcachefs/error.h | 1 + 1 file changed, 1 insertion(+) (limited to 'fs/bcachefs/error.h') diff --git a/fs/bcachefs/error.h b/fs/bcachefs/error.h index 91c7e4ee8f72..edf12443822c 100644 --- a/fs/bcachefs/error.h +++ b/fs/bcachefs/error.h @@ -104,6 +104,7 @@ struct fsck_err_state { u64 nr; bool ratelimited; int ret; + int fix; char *last_msg; }; -- cgit v1.2.3