Commit cf416e7a authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Handle weird opt string from sys_fsconfig()

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent bf5a261c
...@@ -445,6 +445,13 @@ int bch2_parse_mount_opts(struct bch_fs *c, struct bch_opts *opts, ...@@ -445,6 +445,13 @@ int bch2_parse_mount_opts(struct bch_fs *c, struct bch_opts *opts,
if (!options) if (!options)
return 0; return 0;
/*
* sys_fsconfig() is now occasionally providing us with option lists
* starting with a comma - weird.
*/
if (*options == ',')
options++;
copied_opts = kstrdup(options, GFP_KERNEL); copied_opts = kstrdup(options, GFP_KERNEL);
if (!copied_opts) if (!copied_opts)
return -1; return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment