bcachefs: Fix error in parsing of mount options
authorDan Robertson <dan@dlrobertson.com>
Sun, 9 May 2021 22:52:23 +0000 (18:52 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:03 +0000 (17:09 -0400)
commitbaf056b87da88b0c9812d53f8b12072652d1c07b
treeb2e55977a1ad4c306d58cfeb63fcb65fb37f2f86
parentffcf9ec78c133fb85ff13d8119ff404e11820834
bcachefs: Fix error in parsing of mount options

When parsing the mount options duplicate the given options. This is
required as the options are parsed twice and strsep is used in parsing.
The options will be modified into a possibly invalid options set for the
second round of parsing if the options are not duplicated before
parsing.

Signed-off-by: Dan Robertson <dan@dlrobertson.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/opts.c