Fix target option parsing for format, migrate

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2024-06-07 16:12:55 -04:00
parent 0d570e822b
commit e1fa076a86

View File

@ -638,7 +638,7 @@ struct bch_opts bch2_parse_opts(struct bch_opt_strs strs)
ret = bch2_opt_parse(NULL,
&bch2_opt_table[i],
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);
bch2_opt_set_by_id(&opts, i, v);