]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
locking: Implement lock failure action in sanlock driver
authorJiri Denemark <jdenemar@redhat.com>
Tue, 18 Sep 2012 11:41:26 +0000 (13:41 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 11 Oct 2012 12:41:42 +0000 (14:41 +0200)
commit893647671b052cba67f2241bb910df56f3191f2e
tree8d0ba1a04a3772bbfc570c62dcc9f23aa06dee95
parent297c704a1ce2122f35871e1a1c93cad7b79afc58
locking: Implement lock failure action in sanlock driver

While the changes to sanlock driver should be stable, the actual
implementation of sanlock_helper is supposed to be replaced in the
future. However, before we can implement a better sanlock_helper, we
need an administrative interface to libvirtd so that the helper can just
pass a "leases lost" event to the particular libvirt driver and
everything else will be taken care of internally. This approach will
also allow libvirt to pass such event to applications and use
appropriate reasons when changing domain states.

The temporary implementation handles all actions directly by calling
appropriate libvirt APIs (which among other things means that it needs
to know the credentials required to connect to libvirtd).
docs/locking.html.in
libvirt.spec.in
po/POTFILES.in
src/Makefile.am
src/locking/lock_driver_sanlock.c
src/locking/sanlock_helper.c [new file with mode: 0644]