• Al Viro's avatar
    fs_parse: handle optional arguments sanely · 48ce73b1
    Al Viro authored
    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: default avatarAl Viro <viro@zeniv.linux.org.uk>
    48ce73b1
fs_context.c 36.2 KB