mbox series

[ndctl,0/5] make ndctl support global configuration files

Message ID 20210822203015.528438-1-qi.fuli@fujitsu.com (mailing list archive)
Headers show
Series make ndctl support global configuration files | expand

Message

QI Fuli Aug. 22, 2021, 8:30 p.m. UTC
From: QI Fuli <qi.fuli@fujitsu.com>

This patch set is used to make ndctl support global configuration files.
All files with .conf suffix under {sysconfdir}/ndctl can be regarded
as ndctl global configration files that all ndctl commands can refer to.

Signed-off-by: QI Fuli <qi.fuli@fujitsu.com>

QI Fuli (5):
  ndctl, ccan: import ciniparser
  ndctl, util: add parse-configs helper
  ndctl: make ndctl support configuration files
  ndctl, config: add the default ndctl configuration file
  ndctl, monitor: refactor monitor for supporting multiple config files

 Documentation/ndctl/Makefile.am       |   2 +-
 Documentation/ndctl/ndctl-monitor.txt |   8 +-
 Makefile.am                           |   8 +-
 ccan/ciniparser/ciniparser.c          | 480 ++++++++++++++++++++++++++
 ccan/ciniparser/ciniparser.h          | 262 ++++++++++++++
 ccan/ciniparser/dictionary.c          | 266 ++++++++++++++
 ccan/ciniparser/dictionary.h          | 166 +++++++++
 configure.ac                          |   6 +-
 ndctl/Makefile.am                     |  10 +-
 ndctl/lib/Makefile.am                 |   4 +
 ndctl/lib/libndctl.c                  |  52 +++
 ndctl/lib/libndctl.sym                |   2 +
 ndctl/lib/private.h                   |   1 +
 ndctl/libndctl.h                      |   2 +
 ndctl/monitor.c                       |  69 ++--
 ndctl/ndctl.c                         |   1 +
 ndctl/ndctl.conf                      |  56 +++
 util/parse-configs.c                  |  82 +++++
 util/parse-configs.h                  |  34 ++
 19 files changed, 1467 insertions(+), 44 deletions(-)
 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
 create mode 100644 ndctl/ndctl.conf
 create mode 100644 util/parse-configs.c
 create mode 100644 util/parse-configs.h