Skip to content

Fixes for config file parsing

Martin Wilck dm-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 3 repliesIn review
  2. v16 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- fixed a problem with parsing the command strings from cli handlers.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tests: add unit tests for config file parsertests/Makefile tests/globals.c tests/parser.c+481 -10 replies
2/5libmultipath: config parser: don't strip whitepace between quoteslibmultipath/parser.c+2 -10 replies
3/5libmultipath: config parser: Allow '"' in stringslibmultipath/parser.c+25 -12 replies
4/5libmultipath: config parser: fix corner case for double quoteslibmultipath/parser.c libmultipath/parser.h multipathd/cli.c +1 more+20 -190 replies
5/5multipath.conf(5): improve syntax documentationmultipath/multipath.conf.5+17 -00 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBenjmain Marzinski
SeriesR-b
1/5
2/5
3/5
4/5
5/5

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

Read the v2 thread

Cover letter [PATCH v2 0/5] Fixes for config file parsing

This series was motivated by the real-world problem that a user couldn't figure out how to write a blacklist entry for a device called '1.8" SSD'. Fixing this for good turned out to be a little tricky, therefore I also added a test suite.

Changes since v1:
- fixed a problem with parsing the command strings from cli handlers.

Martin Wilck (5):
tests: add unit tests for config file parser
libmultipath: config parser: don't strip whitepace between quotes
libmultipath: config parser: Allow '"' in strings
libmultipath: config parser: fix corner case for double quotes multipath.conf(5): improve syntax documentation

 libmultipath/parser.c      |  60 ++++--
 libmultipath/parser.h      |   1 +
 multipath/multipath.conf.5 |  17 ++
 multipathd/cli.c           |   2 +-
 tests/Makefile             |   2 +-
 tests/globals.c            |   1 +
 tests/parser.c             | 474 +++++++++++++++++++++++++++++++++++++++++++++
 7 files changed, 540 insertions(+), 17 deletions(-)
 create mode 100644 tests/parser.c
Signature · 1 line
2.16.1