[PATCH v2 0/3] Add virDomainGetDiskErrors API

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

 



We already provide ways to detect when a domain has been paused as a
result of I/O error, but there was no way of getting the exact error or
even the device that experienced it.  This new API may be used for both.

Changes in version 2:
- the API is now called virDomainGetDiskErrors
- it returns a list (allocated by caller) of disks with errors instead
  so that users don't have to call it multiple times to get all errors
- there's no python API yet since it can't be autogenerated; I'll send
  a patch for it tomorrow

Jiri Denemark (3):
  virDomainGetDiskErrors public API and remote protocol
  qemu: Implement virDomainGetDiskErrors
  virsh: Implement domblkerror command

 daemon/remote.c              |   40 +++++++++++++++++++
 include/libvirt/libvirt.h.in |   32 +++++++++++++++
 python/generator.py          |    3 +-
 src/driver.h                 |    7 +++
 src/libvirt.c                |   52 ++++++++++++++++++++++++
 src/libvirt_public.syms      |    1 +
 src/qemu/qemu_conf.h         |    1 +
 src/qemu/qemu_driver.c       |   83 +++++++++++++++++++++++++++++++++++++++
 src/qemu/qemu_monitor.c      |   40 +++++++++++++++++++
 src/qemu/qemu_monitor.h      |    1 +
 src/qemu/qemu_monitor_json.c |    8 ++++
 src/qemu/qemu_monitor_text.c |   15 +++++++
 src/remote/remote_driver.c   |   34 ++++++++++++++++
 src/remote/remote_protocol.x |   22 ++++++++++-
 src/remote_protocol-structs  |   16 +++++++
 src/rpc/gendispatch.pl       |   47 ++++++++++++++++++++++
 tools/virsh.c                |   89 ++++++++++++++++++++++++++++++++++++++++++
 tools/virsh.pod              |    7 +++
 18 files changed, 496 insertions(+), 2 deletions(-)

-- 
1.7.8.4

--
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]