diff options
author | Lukas Czerner <lczerner@redhat.com> | 2021-10-27 17:18:45 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2021-12-09 22:09:36 +0300 |
commit | 6abfaaf124a81b7d2ab132cc2c9885baa14171e5 (patch) | |
tree | dd6b705b6dcabc3b13362a78d8428d6b0ab8ed31 /include/linux/fs_parser.h | |
parent | 0fcfb00b28c0b7884635dacf38e46d60bf3d4eb1 (diff) | |
download | linux-6abfaaf124a81b7d2ab132cc2c9885baa14171e5.tar.xz |
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>
Diffstat (limited to 'include/linux/fs_parser.h')
-rw-r--r-- | include/linux/fs_parser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fs_parser.h b/include/linux/fs_parser.h index aab0ffc6bac6..f103c91139d4 100644 --- a/include/linux/fs_parser.h +++ b/include/linux/fs_parser.h @@ -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; }; |