mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
fs_parse: allow parameter value to be empty
Allow parameter value to be empty by specifying fs_param_can_be_empty flag. Signed-off-by: Lukas Czerner <lczerner@redhat.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Link: https://lore.kernel.org/r/20211027141857.33657-2-lczerner@redhat.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
parent
0fcfb00b28
commit
6abfaaf124
2 changed files with 24 additions and 9 deletions
|
@ -42,7 +42,7 @@ struct fs_parameter_spec {
|
|||
u8 opt; /* Option number (returned by fs_parse()) */
|
||||
unsigned short flags;
|
||||
#define fs_param_neg_with_no 0x0002 /* "noxxx" is negative param */
|
||||
#define fs_param_neg_with_empty 0x0004 /* "xxx=" is negative param */
|
||||
#define fs_param_can_be_empty 0x0004 /* "xxx=" is allowed */
|
||||
#define fs_param_deprecated 0x0008 /* The param is deprecated */
|
||||
const void *data;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue