Message ID | 20240531062959.881772-2-lizhijian@fujitsu.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 67afbf10f5e0bda8dac3a3b5ac057ec147cfb440 |
Headers | show |
Series | [ndctl,v2,1/2] daxctl: Fix create-device parameters parsing | expand |
On Fri, 2024-05-31 at 14:29 +0800, Li Zhijian wrote: > RECONFIG_OPTIONS and ZONE_OPTIONS are not implemented for create- > device > and they will be ignored by create-device. Remove them so that the > usage > message is identical to the manual. > > Signed-off-by: Li Zhijian <lizhijian@fujitsu.com> Reviewed-by: Vishal Verma <vishal.l.verma@intel.com> > --- > V2: make the usage match the manual because the usage is wrong. > --- > daxctl/device.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/daxctl/device.c b/daxctl/device.c > index ffabd6cf5707..781dc4007f83 100644 > --- a/daxctl/device.c > +++ b/daxctl/device.c > @@ -98,8 +98,6 @@ OPT_BOOLEAN('\0', "no-movable", ¶m.no_movable, > \ > static const struct option create_options[] = { > BASE_OPTIONS(), > CREATE_OPTIONS(), > - RECONFIG_OPTIONS(), > - ZONE_OPTIONS(), > OPT_END(), > }; >
On 5/30/24 11:29 PM, Li Zhijian wrote: > RECONFIG_OPTIONS and ZONE_OPTIONS are not implemented for create-device > and they will be ignored by create-device. Remove them so that the usage > message is identical to the manual. > > Signed-off-by: Li Zhijian <lizhijian@fujitsu.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> > --- > V2: make the usage match the manual because the usage is wrong. > --- > daxctl/device.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/daxctl/device.c b/daxctl/device.c > index ffabd6cf5707..781dc4007f83 100644 > --- a/daxctl/device.c > +++ b/daxctl/device.c > @@ -98,8 +98,6 @@ OPT_BOOLEAN('\0', "no-movable", ¶m.no_movable, \ > static const struct option create_options[] = { > BASE_OPTIONS(), > CREATE_OPTIONS(), > - RECONFIG_OPTIONS(), > - ZONE_OPTIONS(), > OPT_END(), > }; >
On Fri, May 31, 2024 at 02:29:59PM +0800, Li Zhijian wrote: > RECONFIG_OPTIONS and ZONE_OPTIONS are not implemented for create-device > and they will be ignored by create-device. Remove them so that the usage > message is identical to the manual. > > Signed-off-by: Li Zhijian <lizhijian@fujitsu.com> The net effect of this is a correction to the usage message. I think that can fit in the commit msg with something like this: daxctl: Remove unused options in create-device usage message I'm not familiar with this style of patch 2 being a reply to patch 1. Is there a reason this is not presented as a patchset? Thanks, Alison > --- > V2: make the usage match the manual because the usage is wrong. > --- > daxctl/device.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/daxctl/device.c b/daxctl/device.c > index ffabd6cf5707..781dc4007f83 100644 > --- a/daxctl/device.c > +++ b/daxctl/device.c > @@ -98,8 +98,6 @@ OPT_BOOLEAN('\0', "no-movable", ¶m.no_movable, \ > static const struct option create_options[] = { > BASE_OPTIONS(), > CREATE_OPTIONS(), > - RECONFIG_OPTIONS(), > - ZONE_OPTIONS(), > OPT_END(), > }; > > -- > 2.29.2 > >
On 01/06/2024 05:43, Alison Schofield wrote: > On Fri, May 31, 2024 at 02:29:59PM +0800, Li Zhijian wrote: >> RECONFIG_OPTIONS and ZONE_OPTIONS are not implemented for create-device >> and they will be ignored by create-device. Remove them so that the usage >> message is identical to the manual. >> >> Signed-off-by: Li Zhijian <lizhijian@fujitsu.com> > > The net effect of this is a correction to the usage message. > I think that can fit in the commit msg with something like this: > > daxctl: Remove unused options in create-device usage message Sounds good to me. > > I'm not familiar with this style of patch 2 being a reply to patch 1. > Is there a reason this is not presented as a patchset? Do you mean these 2 patches should post separately? or squash these 2 patches into a single one. > > Thanks, > Alison > > >> --- >> V2: make the usage match the manual because the usage is wrong. >> --- >> daxctl/device.c | 2 -- >> 1 file changed, 2 deletions(-) >> >> diff --git a/daxctl/device.c b/daxctl/device.c >> index ffabd6cf5707..781dc4007f83 100644 >> --- a/daxctl/device.c >> +++ b/daxctl/device.c >> @@ -98,8 +98,6 @@ OPT_BOOLEAN('\0', "no-movable", ¶m.no_movable, \ >> static const struct option create_options[] = { >> BASE_OPTIONS(), >> CREATE_OPTIONS(), >> - RECONFIG_OPTIONS(), >> - ZONE_OPTIONS(), >> OPT_END(), >> }; >> >> -- >> 2.29.2 >> >> >
diff --git a/daxctl/device.c b/daxctl/device.c index ffabd6cf5707..781dc4007f83 100644 --- a/daxctl/device.c +++ b/daxctl/device.c @@ -98,8 +98,6 @@ OPT_BOOLEAN('\0', "no-movable", ¶m.no_movable, \ static const struct option create_options[] = { BASE_OPTIONS(), CREATE_OPTIONS(), - RECONFIG_OPTIONS(), - ZONE_OPTIONS(), OPT_END(), };
RECONFIG_OPTIONS and ZONE_OPTIONS are not implemented for create-device and they will be ignored by create-device. Remove them so that the usage message is identical to the manual. Signed-off-by: Li Zhijian <lizhijian@fujitsu.com> --- V2: make the usage match the manual because the usage is wrong. --- daxctl/device.c | 2 -- 1 file changed, 2 deletions(-)