Skip to content

Metadata parser fixes

Cyril Hrubis ltp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9metadata: metaparse: Parse operators *, +, and | properlymetadata/metaparse.c+3 -03 replies
2/9metadata: metaparse: Implement recursive includemetadata/metaparse.c+40 -21 reply
3/9metadata: metaparse: Apply macros in arrays.metadata/metaparse.c+22 -201 reply
4/9metadata: data_storage: Add JSON null typemetadata/data_storage.h+24 -11 reply
5/9metadata: data_storage: Add two array functionsmetadata/data_storage.h+28 -02 replies
6/9metadata: metaparse: Better array parsing.metadata/metaparse.c+51 -71 reply
7/9metadata: metaparse: Ignore ', ' in array inside parenthesismetadata/metaparse.c+8 -11 reply
8/9metadata: metaparse: Add a few pre-defined macrosmetadata/metaparse.c+47 -03 replies
9/9metadata: parse.sh: Add -Itestcases/kernel/includemetadata/parse.sh+1 -11 reply

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchPetr Vorel
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b
7/9R-b
8/9R-b
9/9R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [LTP] [PATCH 0/9] Metadata parser fixes

This fixes a few metadata parser bugs, mostly array and structure initializers. After this patchset the .save_restore entries should be well formatted and we can make the shell version 1:1 with the C parsed metadata.

The TODO is the filesystem parsing which uses named initializers (e.g. .fs_type = "ext3") and the structure field names end up in the result verbatim. Rather than that the parser should make it a JSON object instead. I will fix that later on.

Cyril Hrubis (9):
metadata: metaparse: Parse operators *, +, and | properly
metadata: metaparse: Implement recursive include
metadata: metaparse: Apply macros in arrays.
metadata: data_storage: Add JSON null type
metadata: data_storage: Add two array functions
metadata: metaparse: Better array parsing.
metadata: metaparse: Ignore ',' in array inside parenthesis
metadata: metaparse: Add a few pre-defined macros
metadata: parse.sh: Add -Itestcases/kernel/include

 metadata/data_storage.h |  53 ++++++++++-
 metadata/metaparse.c    | 195 ++++++++++++++++++++++++++++++++++------
 metadata/parse.sh       |   2 +-
 3 files changed, 221 insertions(+), 29 deletions(-)
Signature · 5 lines
2.45.2


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp