nvdimm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ndctl: change ndctl to support multiple arguments per option
@ 2018-04-17  6:38 QI Fuli
  2018-04-17  6:38 ` [PATCH 1/2] ndctl, util: add OPT_STRING_LIST to parse_option QI Fuli
  2018-04-17  6:38 ` [PATCH 2/2] ndctl, list: change -b -d -r -n options to support multiple arguments QI Fuli
  0 siblings, 2 replies; 11+ messages in thread
From: QI Fuli @ 2018-04-17  6:38 UTC (permalink / raw)
  To: linux-nvdimm

This patch set is to support multiple arguments per option of ndctl.
Currently, ndctl supports only one argument per option, and only one dimm
can be filtered by dimm's name. As a result, when users want to moniotr
multiple dimms, they have to run multiple monitor processes. This feature
can let monitor support filter multiple dimms by dimms' name in one process.
Also applied in ndctl list:

 # ndclt list --dimm="nmem0 nmem1 nmem2"
  [
    {
      "dev":"nmem1",
      "id":"cdab-0a-07e0-feffffff",
      "handle":1,
      "phys_id":1
    },
    {
      "dev":"nmem0",
      "id":"cdab-0a-07e0-ffffffff",
      "handle":0,
      "phys_id":0
    },
    {
      "dev":"nmem2",
      "id":"cdab-0a-07e0-fffeffff",
      "handle":256,
      "phys_id":2
    }
  ]

QI Fuli (2):
  ndctl, util: add OPT_STRING_LIST to parse_option
  ndctl, list: change -b -d -r -n options to support multiple arguments

 ccan/list/list.h     |  6 ++++
 ndctl/list.c         | 35 ++++++++++++++-----
 util/filter.c        | 81 +++++++++++++++++++++++++++++++-------------
 util/filter.h        |  9 ++---
 util/parse-options.c | 25 ++++++++++++++
 util/parse-options.h |  3 ++
 6 files changed, 122 insertions(+), 37 deletions(-)

-- 
2.17.0.140.g0b0cc9f86


_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

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

end of thread, other threads:[~2018-04-19  2:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-17  6:38 [PATCH 0/2] ndctl: change ndctl to support multiple arguments per option QI Fuli
2018-04-17  6:38 ` [PATCH 1/2] ndctl, util: add OPT_STRING_LIST to parse_option QI Fuli
2018-04-17 14:56   ` Dan Williams
2018-04-17 15:29     ` Qi, Fuli
2018-04-17 16:32       ` Dan Williams
2018-04-18 10:09         ` Qi, Fuli
2018-04-18 14:30           ` Dan Williams
2018-04-19  2:06             ` Qi, Fuli
2018-04-19  2:09               ` Dan Williams
2018-04-19  2:18                 ` Qi, Fuli
2018-04-17  6:38 ` [PATCH 2/2] ndctl, list: change -b -d -r -n options to support multiple arguments 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).