diff options
Diffstat (limited to 'libbcachefs/opts.c')
-rw-r--r-- | libbcachefs/opts.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libbcachefs/opts.c b/libbcachefs/opts.c index f853f2f3..68d24012 100644 --- a/libbcachefs/opts.c +++ b/libbcachefs/opts.c @@ -522,8 +522,9 @@ int bch2_parse_one_mount_opt(struct bch_fs *c, struct bch_opts *opts, val = "0"; } + /* Unknown options are ignored: */ if (id < 0) - goto bad_opt; + return 0; if (!(bch2_opt_table[id].flags & OPT_MOUNT)) goto bad_opt; @@ -595,6 +596,9 @@ int bch2_parse_mount_opts(struct bch_fs *c, struct bch_opts *opts, copied_opts_start = copied_opts; while ((opt = strsep(&copied_opts, ",")) != NULL) { + if (!*opt) + continue; + name = strsep(&opt, "="); val = opt; |