libvirt/src/conf
Daniel P. Berrange 34dcbbb470 Add support for another explicit IO error event
This introduces a new event type

   VIR_DOMAIN_EVENT_ID_IO_ERROR_REASON

This event is the same as the previous VIR_DOMAIN_ID_IO_ERROR
event, but also includes a string describing the cause of
the event.

Thus there is a new callback definition for this event type

typedef void (*virConnectDomainEventIOErrorReasonCallback)(virConnectPtr conn,
                                                           virDomainPtr dom,
                                                           const char *srcPath,
                                                           const char *devAlias,
                                                           int action,
                                                           const char *reason,
                                                           void *opaque);

This is currently wired up to the QEMU block IO error events

* daemon/remote.c: Dispatch IO error events to client
* examples/domain-events/events-c/event-test.c: Watch for
  IO error events
* include/libvirt/libvirt.h.in: Define new IO error event ID
  and callback signature
* src/conf/domain_event.c, src/conf/domain_event.h,
  src/libvirt_private.syms: Extend API to handle IO error events
* src/qemu/qemu_driver.c: Connect to the QEMU monitor event
  for block IO errors and emit a libvirt IO error event
* src/remote/remote_driver.c: Receive and dispatch IO error
  events to application
* src/remote/remote_protocol.x: Wire protocol definition for
  IO error events
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h,
  src/qemu/qemu_monitor_json.c: Watch for BLOCK_IO_ERROR event
  from QEMU monitor
2010-04-30 15:52:59 +01:00
..
capabilities.c Remove virConnectPtr from CPU XML APIs 2010-02-10 13:32:38 +00:00
capabilities.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
cpu_conf.c Only parse 'CPU XML' in virCPUDefParseXML() 2010-04-01 14:04:43 +02:00
cpu_conf.h Helper function for making a copy of virCPUDefPtr 2010-03-26 23:03:17 +01:00
domain_conf.c Fix up the error message if we can't parse the snapshot XML. 2010-04-27 14:11:36 -04:00
domain_conf.h Make virDomainSnapshotObjListDeinit static. 2010-04-23 14:20:56 -04:00
domain_event.c Add support for another explicit IO error event 2010-04-30 15:52:59 +01:00
domain_event.h Add support for another explicit IO error event 2010-04-30 15:52:59 +01:00
interface_conf.c Use common XML parsing functions 2010-03-23 15:40:10 +01:00
interface_conf.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
network_conf.c Use common XML parsing functions 2010-03-23 15:40:10 +01:00
network_conf.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
node_device_conf.c Use common XML parsing functions 2010-03-23 15:40:10 +01:00
node_device_conf.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
nwfilter_conf.c nwfilter: add support for RAPR protocol 2010-04-27 07:26:12 -04:00
nwfilter_conf.h Clean all tables before applying 'basic' rules 2010-04-30 08:06:18 -04:00
nwfilter_params.c This patch removes the virConnectPtr parameter from all functions where it's not necessary starting out with removing it as a parameter to the error reporting function. 2010-04-05 12:34:55 -04:00
nwfilter_params.h This patch removes the virConnectPtr parameter from all functions where it's not necessary starting out with removing it as a parameter to the error reporting function. 2010-04-05 12:34:55 -04:00
secret_conf.c Use common XML parsing functions 2010-03-23 15:40:10 +01:00
secret_conf.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_conf.c Fix indentation for storage conf XML 2010-04-27 12:01:32 +02:00
storage_conf.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_encryption_conf.c Fix indentation for storage conf XML 2010-04-27 12:01:32 +02:00
storage_encryption_conf.h Fix indentation for storage conf XML 2010-04-27 12:01:32 +02:00