xl: fix `xl cpupool-list' behavior in case no pool name is provided
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
@@ -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 ;
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,15Signed-off-by Dario Faggioli <[email protected]>
Quoted 25 lines
--- tools/libxl/xl_cmdimpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/libxl/xl_cmdimpl.c +1
-1@@ -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
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,15Signed-off-by Dario Faggioli <[email protected]>Acked-by Juergen Gross <[email protected]>
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
Ian Campbell
AppliedQuoted 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,15Signed-off-by Dario Faggioli <[email protected]>Acked-by Juergen Gross <[email protected]>
Applied, thanks
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
Signed-off-by Dario Faggioli <[email protected]>Acked-by Juergen Gross <[email protected]>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
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.
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
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 JacksonIan 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.