* [PATCH v3] xl: log an error if libxl_cpupool_destroy() fails
@ 2015-11-04 10:48 Dario Faggioli
2015-11-04 15:28 ` Ian Campbell
0 siblings, 1 reply; 2+ messages in thread
From: Dario Faggioli @ 2015-11-04 10:48 UTC (permalink / raw)
To: xen-devel
Cc: Juergen Gross, Ian Jackson, Wei Liu, Ian Campbell, Stefano Stabellini
In fact, right now, failing at destroying a cpupool is just
not reported to the user in any explicit way.
Let's log an error, as it is customary for xl in these cases.
Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
---
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
---
Changes from v2:
* rebased on top of staging;
* fixed Juergen's email address
Changes from v1:
* avoid changing the return code to EXIT_SUCCESS/FAILURE;
that is being taken care of in another series anyway.
---
tools/libxl/xl_cmdimpl.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
index 2756d2f..5469735 100644
--- a/tools/libxl/xl_cmdimpl.c
+++ b/tools/libxl/xl_cmdimpl.c
@@ -7581,8 +7581,10 @@ int main_cpupooldestroy(int argc, char **argv)
return EXIT_FAILURE;
}
- if (libxl_cpupool_destroy(ctx, poolid))
+ if (libxl_cpupool_destroy(ctx, poolid)) {
+ fprintf(stderr, "Can't destroy cpupool '%s'\n", pool);
return EXIT_FAILURE;
+ }
return EXIT_SUCCESS;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v3] xl: log an error if libxl_cpupool_destroy() fails
2015-11-04 10:48 [PATCH v3] xl: log an error if libxl_cpupool_destroy() fails Dario Faggioli
@ 2015-11-04 15:28 ` Ian Campbell
0 siblings, 0 replies; 2+ messages in thread
From: Ian Campbell @ 2015-11-04 15:28 UTC (permalink / raw)
To: Dario Faggioli, xen-devel
Cc: Juergen Gross, Ian Jackson, Wei Liu, Stefano Stabellini
On Wed, 2015-11-04 at 11:48 +0100, Dario Faggioli wrote:
> In fact, right now, failing at destroying a cpupool is just
> not reported to the user in any explicit way.
>
> Let's log an error, as it is customary for xl in these cases.
>
> Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
> Reviewed-by: Juergen Gross <jgross@suse.com>
> Acked-by: Wei Liu <wei.liu2@citrix.com>
Applied (cleanly) thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-11-04 15:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-04 10:48 [PATCH v3] xl: log an error if libxl_cpupool_destroy() fails Dario Faggioli
2015-11-04 15:28 ` Ian Campbell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.