[dm-devel] [PATCH 0/6] Fixes for config file parsing
Martin Wilck
mwilck at suse.com
Tue Mar 6 22:56:27 UTC 2018
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.
Martin Wilck (6):
tests/uevent: fix -Wcast-qual errors
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 | 65 ++++--
multipath/multipath.conf.5 | 17 ++
tests/Makefile | 2 +-
tests/globals.c | 1 +
tests/parser.c | 497 +++++++++++++++++++++++++++++++++++++++++++++
tests/uevent.c | 8 +-
6 files changed, 566 insertions(+), 24 deletions(-)
create mode 100644 tests/parser.c
--
2.16.1
More information about the dm-devel
mailing list