summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-06-07 16:12:55 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-06-07 16:12:55 -0400
commite1fa076a86047f6c5d305c0756adbf3b2810c070 (patch)
treeb1827b1e9e07f46836e41040353fbd32e790765b
parent0d570e822b350320a2787033b0b92c49e579e2a8 (diff)
Fix target option parsing for format, migrate
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r--c_src/libbcachefs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c_src/libbcachefs.c b/c_src/libbcachefs.c
index 703a0eca..7f072d92 100644
--- a/c_src/libbcachefs.c
+++ b/c_src/libbcachefs.c
@@ -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);