projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf5a261
)
bcachefs: Handle weird opt string from sys_fsconfig()
author
Kent Overstreet
<kent.overstreet@linux.dev>
Wed, 2 Aug 2023 16:51:51 +0000
(12:51 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:09 +0000
(17:10 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/opts.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/opts.c
b/fs/bcachefs/opts.c
index 4d0daeba6f597212228cd3c2beba12c27eaa9ff6..960bb247f3a0ab8b84c64e8f439738ffdf76b3b6 100644
(file)
--- a/
fs/bcachefs/opts.c
+++ b/
fs/bcachefs/opts.c
@@
-445,6
+445,13
@@
int bch2_parse_mount_opts(struct bch_fs *c, struct bch_opts *opts,
if (!options)
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);
if (!copied_opts)
return -1;