aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wilson <msw@amazon.com>2012-06-29 15:42:27 +0100
committerMatt Wilson <msw@amazon.com>2012-06-29 15:42:27 +0100
commit23c74ab2b27afb075d8eacf40f04b24f779c5732 (patch)
tree35b43583feaf27e2e9be3f8d1ca72d5809e46161
parent8c77bfea391cde0ae46c37d77d407c3dd9951583 (diff)
downloadxen-23c74ab2b27afb075d8eacf40f04b24f779c5732.tar.gz
xen-23c74ab2b27afb075d8eacf40f04b24f779c5732.tar.bz2
xen-23c74ab2b27afb075d8eacf40f04b24f779c5732.zip
xl: rename "list-vm" command to "vm-list"
All of the other "list" verbs are of the form "$noun-list". For example: "pci-list", "vcpu-list", "network-list", "block-list", etc. Additionally, many people have well trained muscle memory from years of typing "xm li". "xl li" was ambiguous due to "xl list-vm", thus resulting in "command not implemented". Finally, this command was missing from the xl man page. Signed-off-by: Matt Wilson <msw@amazon.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com>
-rw-r--r--docs/man/xl.pod.113
-rw-r--r--tools/libxl/xl.h2
-rw-r--r--tools/libxl/xl_cmdimpl.c4
-rw-r--r--tools/libxl/xl_cmdtable.c6
4 files changed, 19 insertions, 6 deletions
diff --git a/docs/man/xl.pod.1 b/docs/man/xl.pod.1
index c1ec1dacd8..cbd760874e 100644
--- a/docs/man/xl.pod.1
+++ b/docs/man/xl.pod.1
@@ -617,6 +617,19 @@ different run state is appropriate. Pinning can be used to restrict
this, by ensuring certain VCPUs can only run on certain physical
CPUs.
+=item B<vm-list>
+
+Prints information about guests. This list excludes information about
+service or auxiliary domains such as dom0 and stubdoms.
+
+B<EXAMPLE>
+
+An example format for the list is as follows:
+
+UUID ID name
+59e1cf6c-6ab9-4879-90e7-adc8d1c63bf5 2 win
+50bc8f75-81d0-4d53-b2e6-95cb44e2682e 3 linux
+
=item B<vncviewer> [I<OPTIONS>] I<domain-id>
Attach to domain's VNC server, forking a vncviewer process.
diff --git a/tools/libxl/xl.h b/tools/libxl/xl.h
index 59556b5244..b0ba357d3c 100644
--- a/tools/libxl/xl.h
+++ b/tools/libxl/xl.h
@@ -54,7 +54,7 @@ int main_destroy(int argc, char **argv);
int main_shutdown(int argc, char **argv);
int main_reboot(int argc, char **argv);
int main_list(int argc, char **argv);
-int main_list_vm(int argc, char **argv);
+int main_vm_list(int argc, char **argv);
int main_create(int argc, char **argv);
int main_config_update(int argc, char **argv);
int main_button_press(int argc, char **argv);
diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
index 1029e6c2c8..74e24d0eae 100644
--- a/tools/libxl/xl_cmdimpl.c
+++ b/tools/libxl/xl_cmdimpl.c
@@ -3629,11 +3629,11 @@ int main_list(int argc, char **argv)
return 0;
}
-int main_list_vm(int argc, char **argv)
+int main_vm_list(int argc, char **argv)
{
int opt;
- if ((opt = def_getopt(argc, argv, "", "list-vm", 0)) != -1)
+ if ((opt = def_getopt(argc, argv, "", "vm-list", 0)) != -1)
return opt;
list_vm();
diff --git a/tools/libxl/xl_cmdtable.c b/tools/libxl/xl_cmdtable.c
index 93d444eb2c..f0a88c2b51 100644
--- a/tools/libxl/xl_cmdtable.c
+++ b/tools/libxl/xl_cmdtable.c
@@ -214,9 +214,9 @@ struct cmd_spec cmd_table[] = {
"Set the number of active VCPUs allowed for the domain",
"<Domain> <vCPUs>",
},
- { "list-vm",
- &main_list_vm, 0, 0,
- "List the VMs,without DOM0",
+ { "vm-list",
+ &main_vm_list, 0, 0,
+ "List guest domains, excluding dom0, stubdoms, etc.",
"",
},
{ "info",