[libvirt] [PATCH] virsh: support remaining domain events

Eric Blake eblake at redhat.com
Fri Feb 28 17:06:08 UTC 2014


On 02/24/2014 02:49 PM, Eric Blake wrote:
> Earlier, I added 'virsh event' for lifecycle events, to get the
> concept approved; this patch finishes the support for all other
> events, although the user still has to register for one event
> type at a time.  A future patch may add an --all parameter to
> make it possible to register for all events through a single
> call.

Ping - this would be nice to have in 1.2.2, since 'virsh event' is new
to this release.

> 
> * tools/virsh-domain.c (vshDomainEventWatchdogToString)
> (vshDomainEventIOErrorToString, vshGraphicsPhaseToString)
> (vshGraphicsAddressToString, vshDomainBlockJobStatusToString)
> (vshDomainEventDiskChangeToString)
> (vshDomainEventTrayChangeToString, vshEventGenericPrint)
> (vshEventRTCChangePrint, vshEventWatchdogPrint)
> (vshEventIOErrorPrint, vshEventGraphicsPrint)
> (vshEventIOErrorReasonPrint, vshEventBlockJobPrint)
> (vshEventDiskChangePrint, vshEventTrayChangePrint)
> (vshEventPMChangePrint, vshEventBalloonChangePrint)
> (vshEventDeviceRemovedPrint): New helper routines.
> (cmdEvent): Support full array of event callbacks.
> 
> Signed-off-by: Eric Blake <eblake at redhat.com>
> ---
>  tools/virsh-domain.c | 392 +++++++++++++++++++++++++++++++++++++++++++++++++--
>  1 file changed, 381 insertions(+), 11 deletions(-)
> 

-- 
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: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140228/88d13d28/attachment-0001.sig>


More information about the libvir-list mailing list