]> git.ipfire.org Git - thirdparty/libvirt.git/commit
startupPolicy: Emit event on disk source dropping
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 18 Oct 2011 14:15:42 +0000 (16:15 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 25 Oct 2011 07:27:10 +0000 (09:27 +0200)
commitbaf2ff7e9054975becd7d87ef8c67eb817388e80
treebff672c1e9b8b918dac62ab94a53ce2567c0d561
parent12ba43222d796ac0d90d29816e67607cebaf1f78
startupPolicy: Emit event on disk source dropping

If a disk source gets dropped because it is not accessible,
mgmt application might want to be informed about this. Therefore
we need to emit an event. The event presented in this patch
is however a bit superset of what written above. The reason is simple:
an intention to be easily expanded, e.g. on 'user ejected disk
in guest' events. Therefore, callback gets source string and disk alias
(which should be unique among a domain) and reason (an integer);
14 files changed:
daemon/remote.c
examples/domain-events/events-c/event-test.c
examples/domain-events/events-python/event-test.py
include/libvirt/libvirt.h.in
python/libvirt-override-virConnect.py
python/libvirt-override.c
src/conf/domain_event.c
src/conf/domain_event.h
src/libvirt_private.syms
src/qemu/qemu_domain.c
src/qemu/qemu_process.c
src/remote/remote_driver.c
src/remote/remote_protocol.x
src/remote_protocol-structs