summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/opts.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-03-08 16:03:19 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-03-10 15:12:54 -0400
commit2f300f09c7899eb35077aad0a1634cd06a29423a (patch)
treec1e4980980162c25705faebfc2a9289cc543a245 /fs/bcachefs/opts.h
parent88005d5dfbc9665b8cd510916baed9c89960ee90 (diff)
downloadlinux-2f300f09c7899eb35077aad0a1634cd06a29423a.tar.gz
linux-2f300f09c7899eb35077aad0a1634cd06a29423a.tar.bz2
linux-2f300f09c7899eb35077aad0a1634cd06a29423a.zip
bcachefs: no_splitbrain_check option
This adds an option to disable kicking out devices when splitbrain is detected - it seems there's some issues with splitbrain detection and we're kicking out devices erronously. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/opts.h')
-rw-r--r--fs/bcachefs/opts.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/bcachefs/opts.h b/fs/bcachefs/opts.h
index 9a4b7faa3765..9a83aca31b4b 100644
--- a/fs/bcachefs/opts.h
+++ b/fs/bcachefs/opts.h
@@ -290,6 +290,11 @@ enum fsck_err_opts {
OPT_BOOL(), \
BCH2_NO_SB_OPT, false, \
NULL, "Allow mounting in when data will be missing") \
+ x(no_splitbrain_check, u8, \
+ OPT_FS|OPT_MOUNT, \
+ OPT_BOOL(), \
+ BCH2_NO_SB_OPT, false, \
+ NULL, "Don't kick drives out when splitbrain detected")\
x(discard, u8, \
OPT_FS|OPT_MOUNT|OPT_DEVICE, \
OPT_BOOL(), \