diff mbox series

[ndctl,v2,2/2] daxctl: Remove unimplemented create-device options

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

Commit Message

Zhijian Li (Fujitsu) May 31, 2024, 6:29 a.m. UTC
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(-)

Comments

Verma, Vishal L May 31, 2024, 8:03 p.m. UTC | #1
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", &param.no_movable,
> \
>  static const struct option create_options[] = {
>  	BASE_OPTIONS(),
>  	CREATE_OPTIONS(),
> -	RECONFIG_OPTIONS(),
> -	ZONE_OPTIONS(),
>  	OPT_END(),
>  };
>
Dave Jiang May 31, 2024, 8:37 p.m. UTC | #2
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", &param.no_movable, \
>  static const struct option create_options[] = {
>  	BASE_OPTIONS(),
>  	CREATE_OPTIONS(),
> -	RECONFIG_OPTIONS(),
> -	ZONE_OPTIONS(),
>  	OPT_END(),
>  };
>
Alison Schofield May 31, 2024, 9:43 p.m. UTC | #3
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", &param.no_movable, \
>  static const struct option create_options[] = {
>  	BASE_OPTIONS(),
>  	CREATE_OPTIONS(),
> -	RECONFIG_OPTIONS(),
> -	ZONE_OPTIONS(),
>  	OPT_END(),
>  };
>  
> -- 
> 2.29.2
> 
>
Zhijian Li (Fujitsu) June 3, 2024, 1:26 a.m. UTC | #4
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", &param.no_movable, \
>>   static const struct option create_options[] = {
>>   	BASE_OPTIONS(),
>>   	CREATE_OPTIONS(),
>> -	RECONFIG_OPTIONS(),
>> -	ZONE_OPTIONS(),
>>   	OPT_END(),
>>   };
>>   
>> -- 
>> 2.29.2
>>
>>
>
diff mbox series

Patch

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", &param.no_movable, \
 static const struct option create_options[] = {
 	BASE_OPTIONS(),
 	CREATE_OPTIONS(),
-	RECONFIG_OPTIONS(),
-	ZONE_OPTIONS(),
 	OPT_END(),
 };