xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xl: fix `xl cpupool-list' behavior in case no pool name is provided
@ 2013-09-11 11:06 Dario Faggioli
  2013-09-11 11:13 ` Juergen Gross
  0 siblings, 1 reply; 8+ messages in thread
From: Dario Faggioli @ 2013-09-11 11:06 UTC (permalink / raw)
  To: xen-devel; +Cc: George Dunlap, Ian Jackson, Juergen Gross, Ian Campbell

since it errors out, asking for at least one argument, and does
not display any useful output, which is wrong (we want the list
and the info about all the existing cpupools).

IOW, the output is as follows:

 ~# xl cpupool-list -c
 'xl cpupool-list' requires at least 1 argument.
 ...

While it should be as follows:

 ~# xl cpupool-list -c
 Name               CPU list
 Pool-0             0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
---
 tools/libxl/xl_cmdimpl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
index 884f050..35b3e29 100644
--- a/tools/libxl/xl_cmdimpl.c
+++ b/tools/libxl/xl_cmdimpl.c
@@ -6570,7 +6570,7 @@ int main_cpupoollist(int argc, char **argv)
     char *name;
     int ret = 0;
 
-    SWITCH_FOREACH_OPT(opt, "hc", opts, "cpupool-list", 1) {
+    SWITCH_FOREACH_OPT(opt, "hc", opts, "cpupool-list", 0) {
     case 'c':
         opt_cpus = 1;
         break;

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-10-11 17:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-11 11:06 [PATCH] xl: fix `xl cpupool-list' behavior in case no pool name is provided Dario Faggioli
2013-09-11 11:13 ` Juergen Gross
2013-09-13  9:51   ` Dario Faggioli
2013-09-13 12:35   ` Ian Campbell
2013-09-13 13:27     ` Backport request for 4.3.x [was: Re: [PATCH] xl: fix `xl cpupool-list' behavior in case no pool name is provided] Dario Faggioli
2013-09-13 13:48       ` Ian Jackson
2013-09-13 14:01         ` Dario Faggioli
2013-10-11 17:55         ` Ian Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).