bcachefs: Fix for passing target= opts as mount opts
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 24 Oct 2020 01:07:17 +0000 (21:07 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:45 +0000 (17:08 -0400)
commita10e677a1555e070f1a7b3c1dc3e3189d462ab9e
treee3c10ea15e7706c079ced13f5c9de35c967f0466
parent5b088c1dd005ec0fbddfa3664d3095caef6ae52e
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>
fs/bcachefs/fs.c
fs/bcachefs/opts.c
fs/bcachefs/opts.h