mbox series

[0/8] improving config parsing warnings

Message ID 1633550663-25571-1-git-send-email-bmarzins@redhat.com (mailing list archive)
Headers show
Series improving config parsing warnings | expand

Message

Benjamin Marzinski Oct. 6, 2021, 8:04 p.m. UTC
This is a series of patches to make multipath provide better warnings
when parsing multipath.conf. The first three patches fix small issues.
The last five patches make multipath print warning messages with
the file and line number, when it was previously either accepting
invalid values or silently changing them.

Benjamin Marzinski (8):
  libmulitpath: add section name to invalid keyword output
  libmultipath: use typedef for keyword handler function
  libmultipath: print the correct file when parsing fails
  libmultipath: pass file and line number to keyword handlers
  libmultipath: make set_int take a range for valid values
  libmultipath: improve checks for set_str
  libmultipath: split set_int to enable reuse
  libmultipath: cleanup invalid config handling

 libmultipath/dict.c   | 481 ++++++++++++++++++++++++++++--------------
 libmultipath/parser.c |  31 +--
 libmultipath/parser.h |  15 +-
 3 files changed, 349 insertions(+), 178 deletions(-)