[libvirt] [PATCH v2 5/9] virsh: Prefer virDomainGetState over virDomainGetInfo
Jiri Denemark
jdenemar at redhat.com
Tue May 10 14:42:53 UTC 2011
On Tue, May 10, 2011 at 15:39:07 +0200, Jiri Denemark wrote:
> ---
> Notes:
> Version 2:
> - rebased
> - unsigned int flags
> - noGetState renamed as useGetInfo
>
> tools/virsh.c | 195 +++++++++++++++++++++++++++++++++++++++++++++++----------
> 1 files changed, 162 insertions(+), 33 deletions(-)
Man page update for domstate command is missing so the following patch needs
to be squashed in 5/9:
tools/virsh.pod | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/virsh.pod b/tools/virsh.pod
index 2a708f6..66df3ae 100644
--- a/tools/virsh.pod
+++ b/tools/virsh.pod
@@ -426,9 +426,10 @@ Returns information about jobs running on a domain.
Convert a domain Id (or UUID) to domain name
-=item B<domstate> I<domain-id>
+=item B<domstate> I<domain-id> optional I<--reason>
-Returns state about a running domain.
+Returns state about a domain. I<--reason> tells virsh to also print
+reason for the state.
=item B<domxml-from-native> I<format> I<config>
--
Jirka
More information about the libvir-list
mailing list