cmd_option: Fix io path options

We were incorrectly getting the OPT_MOUNT options, and io path options
are no longer OPT_MOUNT.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2025-09-28 11:35:55 -04:00
parent 35052fc376
commit 1f3122eaa2

View File

@ -54,7 +54,7 @@ static int name_to_dev_idx(struct bch_fs *c, const char *dev)
int cmd_set_option(int argc, char *argv[])
{
struct bch_opt_strs new_opt_strs = bch2_cmdline_opts_get(&argc, argv, OPT_MOUNT|OPT_DEVICE);
struct bch_opt_strs new_opt_strs = bch2_cmdline_opts_get(&argc, argv, OPT_FS|OPT_DEVICE);
struct bch_opts new_opts = bch2_parse_opts(new_opt_strs);
DARRAY(unsigned) dev_idxs = {};
int opt, ret = 0;