From: QI Fuli <fukuri.sai@gmail.com>
To: nvdimm@lists.linux.dev
Cc: QI Fuli <qi.fuli@fujitsu.com>
Subject: [ndctl PATCH v2 0/5] make ndctl support global configuration files
Date: Tue, 24 Aug 2021 18:51:01 +0900 [thread overview]
Message-ID: <20210824095106.104808-1-qi.fuli@fujitsu.com> (raw)
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
next reply other threads:[~2021-08-24 9:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-24 9:51 QI Fuli [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210824095106.104808-1-qi.fuli@fujitsu.com \
--to=fukuri.sai@gmail.com \
--cc=nvdimm@lists.linux.dev \
--cc=qi.fuli@fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).