mbox series

[ndctl,v2,0/2] ndctl, monitor: refactor read_config_file

Message ID 20190107083833.25941-1-qi.fuli@jp.fujitsu.com (mailing list archive)
Headers show
Series ndctl, monitor: refactor read_config_file | expand

Message

QI Fuli Jan. 7, 2019, 8:38 a.m. UTC
This patch set is used for refactoring read_config_file by using
ccan/ciniparser library.

Signed-off-by: QI Fuli <qi.fuli@jp.fujitsu.com>
--
Change log since v1:
- Fix the conflicts with the lastest cleanup patch of monitor

QI Fuli (2):
  ndctl: add the ciniparser tool from ccan
  ndctl, monitor: refactor read_config_file

 Makefile.am                  |   6 +-
 ccan/ciniparser/LICENSE      |   1 +
 ccan/ciniparser/ciniparser.c | 480 +++++++++++++++++++++++++++++++++++
 ccan/ciniparser/ciniparser.h | 262 +++++++++++++++++++
 ccan/ciniparser/dictionary.c | 266 +++++++++++++++++++
 ccan/ciniparser/dictionary.h | 166 ++++++++++++
 ndctl/Makefile.am            |   1 +
 ndctl/monitor.c              | 115 +++------
 ndctl/monitor.conf           |   2 +
 9 files changed, 1212 insertions(+), 87 deletions(-)
 create mode 120000 ccan/ciniparser/LICENSE
 create mode 100644 ccan/ciniparser/ciniparser.c
 create mode 100644 ccan/ciniparser/ciniparser.h
 create mode 100644 ccan/ciniparser/dictionary.c
 create mode 100644 ccan/ciniparser/dictionary.h