summaryrefslogtreecommitdiff
path: root/fs/bcachefs/error.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-04-15 14:26:14 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:10:00 -0400
commit853b7393c20d5e129f2b16719102a05bbb5dc36f (patch)
treec9aabb2384e92de017639fd7cdd9cc1c5da2f46a /fs/bcachefs/error.h
parent6b9857b208d7566d8bfd332a543b1dca92202c2b (diff)
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>
Diffstat (limited to 'fs/bcachefs/error.h')
-rw-r--r--fs/bcachefs/error.h1
1 files changed, 1 insertions, 0 deletions
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;
};