projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b560e32
)
bcachefs: Ignore unknown mount options
author
Kent Overstreet
<kent.overstreet@linux.dev>
Sat, 23 Sep 2023 22:41:51 +0000
(18:41 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:15 +0000
(17:10 -0400)
This makes mount option handling consistent with other filesystems -
options may be handled at different layers, so an option we don't know
about might not be intended for us.
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
960bb24
..
739a2ef
100644
(file)
--- a/
fs/bcachefs/opts.c
+++ b/
fs/bcachefs/opts.c
@@
-471,8
+471,9
@@
int bch2_parse_mount_opts(struct bch_fs *c, struct bch_opts *opts,
val = "0";
}
+ /* Unknown options are ignored: */
if (id < 0)
-
goto bad_opt
;
+
continue
;
if (!(bch2_opt_table[id].flags & OPT_MOUNT))
goto bad_opt;