diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-10-24 03:07:17 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:08:45 +0200 |
commit | a10e677a1555e070f1a7b3c1dc3e3189d462ab9e (patch) | |
tree | e3c10ea15e7706c079ced13f5c9de35c967f0466 /fs/bcachefs/opts.h | |
parent | bcachefs: Fix bch2_mark_stripe() (diff) | |
download | linux-a10e677a1555e070f1a7b3c1dc3e3189d462ab9e.tar.xz linux-a10e677a1555e070f1a7b3c1dc3e3189d462ab9e.zip |
bcachefs: Fix for passing target= opts as mount opts
Some options can't be parsed until the filesystem initialized;
previously, passing these options to mount or remount would cause mount
to fail.
This changes the mount path so that we parse the options passed in
twice, and just ignore any options that can't be parsed the first time.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/opts.h')
-rw-r--r-- | fs/bcachefs/opts.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/opts.h b/fs/bcachefs/opts.h index 6aaabb24d3ed..1ddb9c57b3a5 100644 --- a/fs/bcachefs/opts.h +++ b/fs/bcachefs/opts.h @@ -424,7 +424,7 @@ void bch2_opt_to_text(struct printbuf *, struct bch_fs *, int bch2_opt_check_may_set(struct bch_fs *, int, u64); int bch2_opts_check_may_set(struct bch_fs *); -int bch2_parse_mount_opts(struct bch_opts *, char *); +int bch2_parse_mount_opts(struct bch_fs *, struct bch_opts *, char *); /* inode opts: */ |