[libvirt] [PATCH v5 3/5] virsh: supports guest panicked

Eric Blake eblake at redhat.com
Wed Jun 5 22:45:44 UTC 2013


On 06/05/2013 03:54 AM, Chen Fan wrote:
> Add 'virsh domstate --reason' command is effective when domain crashed.
> ---
>  tools/virsh-domain-monitor.c | 8 ++++++++
>  1 file changed, 8 insertions(+)

This should probably be squashed in with your 1/5 patch that introduces
the new enum values in the first place.

In fact, patch 1/5 fails to compile with decent gcc:

virsh-domain-monitor.c: In function 'vshDomainStateReasonToString':
virsh-domain-monitor.c:178:9: error: enumeration value
'VIR_DOMAIN_RUNNING_CRASHED' not handled in switch [-Werror=switch]
virsh-domain-monitor.c:210:9: error: enumeration value
'VIR_DOMAIN_PAUSED_GUEST_PANICKED' not handled in switch [-Werror=switch]
virsh-domain-monitor.c:236:9: error: enumeration value
'VIR_DOMAIN_SHUTDOWN_CRASHED' not handled in switch [-Werror=switch]
virsh-domain-monitor.c:268:9: error: enumeration value
'VIR_DOMAIN_CRASHED_PANICKED' not handled in switch [-Werror=switch]
virsh-domain-monitor.c: At top level:
cc1: error: unrecognized command line option
"-Wno-unused-command-line-argument" [-Werror]
cc1: all warnings being treated as errors

and ALL patches in the series should be independently compilable.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130605/9f597912/attachment-0001.sig>


More information about the libvir-list mailing list