RE: [PATCH 1/2] ndctl, util: add OPT_STRING_LIST to parse_option

2018-04-18 Thread Qi, Fuli
> -Original Message- > From: Dan Williams [mailto:dan.j.willi...@intel.com] > Sent: Thursday, April 19, 2018 11:10 AM > To: Qi, Fuli/斉 福利 > Cc: linux-nvdimm > Subject: Re: [PATCH 1/2] ndctl, util: add OPT_STRING_LIST to parse_option > >

RE: [PATCH v2] ndctl, filter: refacor util__filter() to support multiple space-seperated arguments

2018-04-18 Thread Qi, Fuli
> From: Verma, Vishal L [mailto:vishal.l.ve...@intel.com] > Sent: Thursday, April 19, 2018 1:06 AM > To: Williams, Dan J ; Qi, Fuli/斉 福利 > > Cc: linux-nvdimm@lists.01.org > Subject: Re: [PATCH v2] ndctl, filter: refacor util__filter() to support

Re: [PATCH 1/2] ndctl, util: add OPT_STRING_LIST to parse_option

2018-04-18 Thread Dan Williams
On Wed, Apr 18, 2018 at 7:06 PM, Qi, Fuli wrote: >> > Thank you very much, I made a v2 patch by referring to your sample patch. >> > >> > Going back to the OPT_STRING_LIST, I think it is necessary for ndctl. >> > Because the other options in monitor like --dimm-event,

RE: [PATCH 1/2] ndctl, util: add OPT_STRING_LIST to parse_option

2018-04-18 Thread Qi, Fuli
> > Thank you very much, I made a v2 patch by referring to your sample patch. > > > > Going back to the OPT_STRING_LIST, I think it is necessary for ndctl. > > Because the other options in monitor like --dimm-event, --bus-event > > also need to support multiple space-separated arguments, these

[PATCH v3 1/3] resource: Use list_head to link sibling resource

2018-04-18 Thread Baoquan He
The struct resource uses singly linked list to link siblings. It's not easy to do reverse iteration on sibling list. So replace it with list_head. And this makes codes in kernel/resource.c more readable after refactoring than pointer operation. Besides, type of member variables of struct

Re: [ndctl PATCH] ndctl, documentation: add inject-smart to the Makefile

2018-04-18 Thread Ross Zwisler
On Wed, Apr 18, 2018 at 04:04:02PM -0600, Vishal Verma wrote: > We neglected adding the inject-smart man page to the documentation > Makefile, resulting in the man page never getting generated. > > Reported-by: Jacek Zloch > Signed-off-by: Vishal Verma

[ndctl PATCH] ndctl, documentation: add inject-smart to the Makefile

2018-04-18 Thread Vishal Verma
We neglected adding the inject-smart man page to the documentation Makefile, resulting in the man page never getting generated. Reported-by: Jacek Zloch Signed-off-by: Vishal Verma --- Documentation/ndctl/Makefile.am | 1 + 1 file changed, 1

Re: [PATCH v2] ndctl, filter: refacor util__filter() to support multiple space-seperated arguments

2018-04-18 Thread Verma, Vishal L
On Wed, 2018-04-18 at 07:31 -0700, Dan Williams wrote: > On Tue, Apr 17, 2018 at 11:32 PM, QI Fuli wrote: > > This patch refactors util__filter to support multiple space- > > seperated > > arguments. Currently, only one can be filtered by 's > > name > > in

Re: [PATCH v2] ndctl, filter: refacor util__filter() to support multiple space-seperated arguments

2018-04-18 Thread Dan Williams
On Tue, Apr 17, 2018 at 11:32 PM, QI Fuli wrote: > This patch refactors util__filter to support multiple space-seperated > arguments. Currently, only one can be filtered by 's name > in util__filter(). As a result, when users want to moniotr multiple > dimms, they have to

Re: [PATCH 1/2] ndctl, util: add OPT_STRING_LIST to parse_option

2018-04-18 Thread Dan Williams
On Wed, Apr 18, 2018 at 3:09 AM, Qi, Fuli wrote: >> >> As far as I can see we do not need to allocate a list or add this new >> >> OPT_STRING_LIST argument type. Just teach the util__filter() >> routines >> >> that the 'ident' argument may be a space delimited list. See

RE: [PATCH 1/2] ndctl, util: add OPT_STRING_LIST to parse_option

2018-04-18 Thread Qi, Fuli
> >> As far as I can see we do not need to allocate a list or add this new > >> OPT_STRING_LIST argument type. Just teach the util__filter() > routines > >> that the 'ident' argument may be a space delimited list. See the attached > patch: > > > > Thank you for your comment. > > > > The

[PATCH v2] ndctl, filter: refacor util__filter() to support multiple space-seperated arguments

2018-04-18 Thread QI Fuli
This patch refactors util__filter to support multiple space-seperated arguments. Currently, only one can be filtered by 's name in util__filter(). As a result, when users want to moniotr multiple dimms, they have to run multiple monitor processes. This feature teachs the util_dimm_filter() that