fs_parse: handle optional arguments sanely
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 18 Dec 2019 01:03:59 +0000 (20:03 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 7 Feb 2020 19:48:37 +0000 (14:48 -0500)
commit48ce73b1bef20331007b35de7ade8fe26cd55e84
tree27cefdfd5e4f49a92d81e6a98f48b4f83a9c1639
parentd7167b149943e38ad610191ecbb0800c78bbced9
fs_parse: handle optional arguments sanely

Don't bother with "mixed" options that would allow both the
form with and without argument (i.e. both -o foo and -o foo=bar).
Rather than trying to shove both into a single fs_parameter_spec,
allow having with-argument and no-argument specs with the same
name and teach fs_parse to handle that.

There are very few options of that sort, and they are actually
easier to handle that way - callers end up with less postprocessing.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ceph/super.c
fs/fs_parser.c
fs/gfs2/ops_fstype.c
fs/nfs/fs_context.c
include/linux/fs_parser.h