mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-23 00:00:02 +03:00
Fix target option parsing for format, migrate
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
0d570e822b
commit
e1fa076a86
@ -638,7 +638,7 @@ struct bch_opts bch2_parse_opts(struct bch_opt_strs strs)
|
|||||||
ret = bch2_opt_parse(NULL,
|
ret = bch2_opt_parse(NULL,
|
||||||
&bch2_opt_table[i],
|
&bch2_opt_table[i],
|
||||||
strs.by_id[i], &v, &err);
|
strs.by_id[i], &v, &err);
|
||||||
if (ret < 0)
|
if (ret < 0 && ret != -BCH_ERR_option_needs_open_fs)
|
||||||
die("Invalid option %s", err.buf);
|
die("Invalid option %s", err.buf);
|
||||||
|
|
||||||
bch2_opt_set_by_id(&opts, i, v);
|
bch2_opt_set_by_id(&opts, i, v);
|
||||||
|
Loading…
Reference in New Issue
Block a user