Skip to contentSkip to conversation

xl: fix `xl cpupool-list' behavior in case no pool name is provided

PATCH Applied Dario Faggioli 4 participants 8 messages Sep 11, 2013 – Oct 11, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xl: fix `xl cpupool-list' behavior in case no pool name is provided

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

---
 tools/libxl/xl_cmdimpl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxl/xl_cmdimpl.c +1 -1
index 884f050..35b3e29 100644
@@ -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;
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Dario Faggioli

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.
...

Quoted 7 lines

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

Quoted 25 lines
---
  tools/libxl/xl_cmdimpl.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxl/xl_cmdimpl.c +1 -1
index 884f050..35b3e29 100644
@@ -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;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Signature · 5 lines
Juergen Gross                 Principal Developer Operating Systems
PBG PDG ES&S SWE OS6                   Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions              e-mail: [email protected]
Domagkstr. 28                           Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html
#2 lore raw
Quoted 13 lines · Juergen Gross
Quoted 12 lines · Dario Faggioli

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:

Quoted 8 lines
Quoted 5 lines

~# 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

BTW, I just checked, and this affects 4.3.0 too.

I'll request a backport for this patch as soon as it hits the unstable repository.

Regards,
Dario

Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Applied
#3 lore raw
In reply to Juergen Gross
Quoted 13 lines · Juergen Gross
Quoted 12 lines · Dario Faggioli

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:

Quoted 7 lines
Quoted 5 lines

~# 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

Applied, thanks

#4 lore raw

Backport request for 4.3.x [was: Re: [PATCH] xl: fix `xl cpupool-list' behavior in case no pool name is provided]

Quoted 18 lines · Ian Campbell
Quoted 17 lines · Juergen Gross
Quoted 16 lines · Dario Faggioli

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

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Applied, thanks

Thanks to you.

As already said, I verified that this bug also affects Xen 4.3. I'm therefore requesting the backport of this patch, that is now commit 3998afdbf99959582dcd9f9f4df5a6fe7ce4ded8, to there.

`git cherry-pick'ing it from staging-4.3 works fine.

While at it, I tried 4.2.3 as well and that does not show the bug, so no need to backport to anything farther than 4.3.

Thanks and Regards,
Dario

Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#5 lore raw

Backport request for 4.3.x [was: Re: [PATCH] xl: fix `xl cpupool-list' behavior in case no pool name is provided]

Dario Faggioli writes ("Backport request for 4.3.x [was: Re: [Xen-devel] [PATCH] xl: fix `xl cpupool-list' behavior in case no pool name is provided]"):

Quoted 3 lines

As already said, I verified that this bug also affects Xen 4.3. I'm therefore requesting the backport of this patch, that is now commit 3998afdbf99959582dcd9f9f4df5a6fe7ce4ded8, to there.

I have added this to my list. I'm not backporting it just yet because it should have some time to settle in unstable.

Ian.

#6 lore raw

Re: Backport request for 4.3.x [was: Re: [PATCH] xl: fix `xl cpupool-list' behavior in case no pool name is provided]

Quoted 7 lines · Ian Jackson

Dario Faggioli writes ("Backport request for 4.3.x [was: Re: [Xen-devel] [PATCH] xl: fix `xl cpupool-list' behavior in case no pool name is provided]"):

Quoted 3 lines

As already said, I verified that this bug also affects Xen 4.3. I'm therefore requesting the backport of this patch, that is now commit 3998afdbf99959582dcd9f9f4df5a6fe7ce4ded8, to there.

I have added this to my list.

Thanks.

Quoted 3 lines

I'm not backporting it just yet because
it should have some time to settle in unstable.

Sure!

Regards,
Dario

Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#7 lore raw

Backport request for 4.3.x [was: Re: [PATCH] xl: fix `xl cpupool-list' behavior in case no pool name is provided]

In reply to Ian Jackson

Ian Jackson writes ("Backport request for 4.3.x [was: Re: [Xen-devel] [PATCH] xl: fix `xl cpupool-list' behavior in case no pool name is provided]"):

Quoted 7 lines

Dario Faggioli writes ("Backport request for 4.3.x [was: Re: [Xen-devel] [PATCH] xl: fix `xl cpupool-list' behavior in case no pool name is provided]"):

Quoted 3 lines

As already said, I verified that this bug also affects Xen 4.3. I'm therefore requesting the backport of this patch, that is now commit 3998afdbf99959582dcd9f9f4df5a6fe7ce4ded8, to there.

I have added this to my list. I'm not backporting it just yet because it should have some time to settle in unstable.

This is now in staging-4.3.

Ian.