nvdimm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [ndctl PATCH v2 0/5] make ndctl support global configuration files
@ 2021-08-24  9:51 QI Fuli
  2021-08-24  9:51 ` [ndctl PATCH v2 1/5] ndctl, util: add iniparser helper QI Fuli
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: QI Fuli @ 2021-08-24  9:51 UTC (permalink / raw)
  To: nvdimm; +Cc: QI Fuli

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 configuration files that all ndctl commands can refer to.

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

v1 -> v2:
- Update the version of iniparser helper

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

 Documentation/ndctl/Makefile.am       |   2 +-
 Documentation/ndctl/ndctl-monitor.txt |   8 +-
 Makefile.am                           |   8 +-
 configure.ac                          |   6 +-
 ndctl/Makefile.am                     |   9 +-
 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/dictionary.c                     | 383 ++++++++++++
 util/dictionary.h                     | 175 ++++++
 util/iniparser.c                      | 838 ++++++++++++++++++++++++++
 util/iniparser.h                      | 360 +++++++++++
 util/parse-configs.c                  |  82 +++
 util/parse-configs.h                  |  34 ++
 19 files changed, 2048 insertions(+), 44 deletions(-)
 create mode 100644 ndctl/ndctl.conf
 create mode 100644 util/dictionary.c
 create mode 100644 util/dictionary.h
 create mode 100644 util/iniparser.c
 create mode 100644 util/iniparser.h
 create mode 100644 util/parse-configs.c
 create mode 100644 util/parse-configs.h

-- 
2.31.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-08-24  9:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-24  9:51 [ndctl PATCH v2 0/5] make ndctl support global configuration files QI Fuli
2021-08-24  9:51 ` [ndctl PATCH v2 1/5] ndctl, util: add iniparser helper QI Fuli
2021-08-24  9:51 ` [ndctl PATCH v2 2/5] ndctl, util: add parse-configs helper QI Fuli
2021-08-24  9:51 ` [ndctl PATCH v2 3/5] ndctl: make ndctl support configuration files QI Fuli
2021-08-24  9:51 ` [ndctl PATCH v2 4/5] ndctl, config: add the default ndctl configuration file QI Fuli
2021-08-24  9:51 ` [ndctl PATCH v2 5/5] ndctl, monitor: refator monitor for supporting multiple config files QI Fuli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).