summaryrefslogtreecommitdiff
path: root/c_src/cmd_option.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-03-19 12:51:44 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-03-19 15:47:44 -0400
commit846f3398a27cff78c48e37c7a1ba1bccccff6287 (patch)
treeca038b1762701b2839689f903cae918074a7fc24 /c_src/cmd_option.c
parente6aecdd3b8a00d9718fc1ef30ab6a5dbdb5a53dc (diff)
More device option work
More work to regularize device options, with common command line parsing - like other options. This fixes an assortment of little nits: buggyness with the discard option, device state (and others) can now be specied at device add time, and is a decent cleanup. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'c_src/cmd_option.c')
-rw-r--r--c_src/cmd_option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c_src/cmd_option.c b/c_src/cmd_option.c
index 99e397b9..02faca07 100644
--- a/c_src/cmd_option.c
+++ b/c_src/cmd_option.c
@@ -30,7 +30,7 @@ static void set_option_usage(void)
"Usage: bcachefs set-fs-option [OPTION].. device\n"
"\n"
"Options:\n");
- bch2_opts_usage(OPT_MOUNT);
+ bch2_opts_usage(OPT_MOUNT|OPT_RUNTIME);
puts(" -d, --dev-idx index for device specific options\n"
" -h, --help display this help and exit\n"
"Report bugs to <linux-bcachefs@vger.kernel.org>");