summaryrefslogtreecommitdiff
path: root/fs/bcachefs/opts.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-03-13 00:55:52 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-03-24 09:50:35 -0400
commit8d7b7ac367cd0e7f0e496ba6526799994b3c1237 (patch)
treedf23b493f75aac2f26544537f9a6ed3687b7dd26 /fs/bcachefs/opts.h
parent7b84d934a16274eaedfb38cb94b909426048c48e (diff)
bcachefs: Device state is now a runtime option
Other options can normally be set at runtime via sysfs, no reason for this one not to be as well - it just doesn't support the degraded flags argument this way, that requires the ioctl. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/opts.h')
-rw-r--r--fs/bcachefs/opts.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/opts.h b/fs/bcachefs/opts.h
index 19fcc0e51c0b..0bf39e4b1c8e 100644
--- a/fs/bcachefs/opts.h
+++ b/fs/bcachefs/opts.h
@@ -495,7 +495,7 @@ enum fsck_err_opts {
NULL, "Skip submit_bio() for data reads and writes, " \
"for performance testing purposes") \
x(state, u64, \
- OPT_DEVICE, \
+ OPT_DEVICE|OPT_RUNTIME, \
OPT_STR(bch2_member_states), \
BCH_MEMBER_STATE, BCH_MEMBER_STATE_rw, \
"state", "rw,ro,failed,spare") \