ndctl, region: return the rc value in region_action
PATCH 1/1 ndctl, region: return the rc value in region_action
if region_action failed, return the rc valude instead of 0
--- ndctl/region.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ndctl/region.c +1 -1
@@ -89,7 +89,7 @@ static int region_action(struct ndctl_region *region, enum device_action mode)break ; } -return 0 ; +return rc; } static int do_xable_region(const char *region_arg, enum device_action mode,
Signature · 6 lines
2.17.2 _______________________________________________ Linux-nvdimm mailing list [email protected] https://lists.01.org/mailman/listinfo/linux-nvdimm
Quoted 13 lines · Yi Zhang
if
region_actionfailed, return the rc valude instead of 0Signed-off-by Yi Zhang <[email protected]>--- ndctl/region.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)ndctl/region.c +0
-0
ndctl/region.c static int region_action(struct ndctl_region *region, enum device_action mode) · line 93
Quoted 6 lines
ndctl/region.c +1
-1@@ -89,7 +89,7 @@ static int region_action(struct ndctl_region *region, enum device_action mode)break ; } -return 0 ; +return rc; }
Looks good to me:
_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm
Quoted 10 lines
-----Original Message-----
From: Linux-nvdimm [mailto:[email protected]] On Behalf Of Dan Williams
Sent: Monday, April 15, 2019 11:29 AM
Subject: Re: [PATCH ndctl] ndctl, region: return the rc value inregion_actionQuoted 2 lines · Yi Zhang
if
region_actionfailed, return the rc valude instead of 0
valude s/b value
Quoted 14 lines
Quoted 14 lines
Signed-off-by Yi Zhang <[email protected]>--- ndctl/region.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)ndctl/region.c +0
-0@@ -89,7 +89,7 @@ static int region_action(struct ndctl_region *region, enum device_action mode)break ; }
Quoted 7 lines
ndctl/region.c static int region_action(struct ndctl_region *region, enum device_action mode) · line 93
Quoted 3 lines
ndctl/region.c +1
-1-return 0 ; +return rc; }Looks good to me:
Reviewed-by Dan Williams <[email protected]>
Perhaps a similar change should be made to ndctl_namespace_disable_safe(), one of the functions called by region_action() whose rc is propagated, to propagate the rc from ndctl_namespace_disable_invalidate().
_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm
Hi Elliott
Thanks for your review.
Quoted 9 lines · Robert (Servers)
Quoted 8 lines
-----Original Message-----
From: Linux-nvdimm [mailto:[email protected]] On Behalf Of Dan Williams
Sent: Monday, April 15, 2019 11:29 AM
Subject: Re: [PATCH ndctl] ndctl, region: return the rc value inregion_actionQuoted 1 line · Yi Zhang
if
region_actionfailed, return the rc valude instead of 0valude s/b value
Sorry for the late response, I just found this patch was merged:
Quoted 18 lines
Quoted 18 lines
Quoted 10 lines
Signed-off-by Yi Zhang <[email protected]>--- ndctl/region.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)ndctl/region.c +0
-0ndctl/region.c static int region_action(struct ndctl_region *region, enum device_action mode) · line 93
Quoted 6 lines
ndctl/region.c +1
-1@@ -89,7 +89,7 @@ static int region_action(struct ndctl_region *region, enum device_action mode)break ; } -return 0 ; +return rc; }Looks good to me:
Quoted 4 lines
Quoted 1 line
Reviewed-by Dan Williams <[email protected]>Perhaps a similar change should be made to
ndctl_namespace_disable_safe(), one of the functions called byregion_action()whose rc is propagated, to propagate the rc fromndctl_namespace_disable_invalidate().
I'm not familiar with the ndctl code, could you help send patch to fix it if the change needed.
Thanks
Yi
Quoted 7 lines
_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm
_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm