From: Andre Przywara <andre.przywara@amd.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>,
Juergen Gross <juergen.gross@ts.fujitsu.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: [PATCH] xl: remove unimplemented -l stub for cpupool-list
Date: Fri, 28 Jan 2011 00:31:51 +0100 [thread overview]
Message-ID: <4D420067.5090606@amd.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 486 bytes --]
Hi,
although advertised via the usage output, xl cpupool-list -l just
returns ERROR_NI, which does not show up on the console. Instead the
output is empty, which is not exactly what --long hints to.
To avoid confusion remove the line from the help output and just
ignore the -l option properly until it gets finally implemented.
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Regards,
Andre.
--
Andre Przywara
AMD-Operating System Research Center (OSRC), Dresden, Germany
[-- Attachment #2: xl_fix_cpupool_list_l.patch --]
[-- Type: text/plain, Size: 2251 bytes --]
commit ac0f29c5fa6b4180d990613827d2d64e14dfbce5
Author: Andre Przywara <andre.przywara@amd.com>
Date: Thu Jan 27 23:50:29 2011 +0100
xl: remove unimplemented -l stub for cpupool-list
Although advertised via the usage output, xl cpupool-list -l just
returns ERROR_NI, which does not show up on the console. Instead the
output is empty, which is not exactly what --long hints to.
To avoid confusion remove the line from the help output and just
ignore the -l option properly until it gets finally implemented.
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
index 8ecc10b..e0aa93d 100644
--- a/tools/libxl/xl_cmdimpl.c
+++ b/tools/libxl/xl_cmdimpl.c
@@ -5420,13 +5420,11 @@ int main_cpupoollist(int argc, char **argv)
return -ERROR_NOMEM;
}
- if (!opt_long) {
- printf("%-19s", "Name");
- if (opt_cpus)
- printf("CPU list\n");
- else
- printf("CPUs Sched Active Domain count\n");
- }
+ printf("%-19s", "Name");
+ if (opt_cpus)
+ printf("CPU list\n");
+ else
+ printf("CPUs Sched Active Domain count\n");
for (p = 0; p < n_pools; p++) {
if (!ret && (!pool || (poolinfo[p].poolid != poolid))) {
@@ -5434,9 +5432,6 @@ int main_cpupoollist(int argc, char **argv)
if (!name) {
fprintf(stderr, "error getting cpupool info\n");
ret = -ERROR_NOMEM;
- }
- else if (opt_long) {
- ret = -ERROR_NI;
} else {
printf("%-19s", name);
free(name);
diff --git a/tools/libxl/xl_cmdtable.c b/tools/libxl/xl_cmdtable.c
index 5e7793d..5083fc6 100644
--- a/tools/libxl/xl_cmdtable.c
+++ b/tools/libxl/xl_cmdtable.c
@@ -349,8 +349,7 @@ struct cmd_spec cmd_table[] = {
{ "cpupool-list",
&main_cpupoollist,
"List CPU pools on host",
- "[-l|--long] [-c|--cpus] [<CPU Pool>]",
- "-l, --long Output all CPU pool details.\n"
+ "[-c|--cpus] [<CPU Pool>]",
"-c, --cpus Output list of CPUs used by a pool"
},
{ "cpupool-destroy",
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next reply other threads:[~2011-01-27 23:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-27 23:31 Andre Przywara [this message]
2011-01-28 17:44 ` [PATCH] xl: remove unimplemented -l stub for cpupool-list Ian Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D420067.5090606@amd.com \
--to=andre.przywara@amd.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=juergen.gross@ts.fujitsu.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.