Skip to content

fs_parser: handle parameters that can be empty and don't have a value

Luis Henriques linux-ext4 linux-fsdevel linux-unionfs lkml oe-lkp 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 12 repliesIn review
  2. v13 patches 18 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3fs_parser: add helper to define parameters with string and flag typesinclude/linux/fs_parser.h+8 -00 replies
2/3ext4: fix the parsing of empty string mount parametersfs/ext4/super.c+10 -150 replies
3/3ovl: fix the parsing of empty string mount parametersfs/overlayfs/params.c+5 -812 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] fs_parser: handle parameters that can be empty and don't have a value

While investigating an ext4/053 fstest failure, I realised that there was an issue when the flag 'fs_param_can_be_empty' is set in a parameter and it doesn't have a value

After an initial attempt to fix the issue, Christian suggested a different approach and the following patches are based in his suggestion.

Another change that I'm introducing in this v2 is the change of parameter 'test_dummy_encryption' to also use the new helper introduced by the first patch in this series.

Finally, I'd like to ask someone to look closer at the overlayfs patch as I don't think there were any fstests to validate the case where 'lowerdir' is empty.

Luis Henriques (3):
fs_parser: add helper to define parameters with string and flag types
ext4: fix the parsing of empty string mount parameters
ovl: fix the parsing of empty string mount parameters

 fs/ext4/super.c           | 25 ++++++++++---------------
 fs/overlayfs/params.c     | 13 +++++--------
 include/linux/fs_parser.h |  8 ++++++++
 3 files changed, 23 insertions(+), 23 deletions(-)