On 01/31/2012 12:26 PM, Jiri Denemark wrote: > 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. > --- > include/libvirt/libvirt.h.in | 32 ++++++++++++++++++++ > python/generator.py | 3 +- > src/driver.h | 7 ++++ > src/libvirt.c | 65 ++++++++++++++++++++++++++++++++++++++++++ > src/libvirt_public.syms | 1 + > 5 files changed, 107 insertions(+), 1 deletions(-) > > + * > + * Since calling virDomainGetDiskErrors(dom, NULL, 0, 0) to get preferred size > + * of @errors array and getting the errors are two separate operations, new > + * disks may be hotplugged to the domain and new errors may be encountered > + * between the two calls. Thus, this function may not return all disk errors > + * because the supplied array is not large enough. Such errors may, however, > + * be detected by listening to domain events. I like it. Nice improvement from v1. ACK. -- Eric Blake eblake@xxxxxxxxxx +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