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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]