]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Introduce basic infrastructure for virtlockd daemon
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 2 Aug 2012 19:06:50 +0000 (20:06 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 13 Dec 2012 15:26:57 +0000 (15:26 +0000)
commitc57e3d89944c582f104b39c4abec5c42f0141688
tree1fd9863de315b3b0d7cb46cd2ac550a2535c94c4
parentf199f75e9b0b080cda158ec607c63a7c3dae0f29
Introduce basic infrastructure for virtlockd daemon

The virtlockd daemon will maintain locks on behalf of libvirtd.
There are two reasons for it to be separate

 - Avoid risk of other libvirtd threads accidentally
   releasing fcntl() locks by opening + closing a file
   that is locked
 - Ensure locks can be preserved across libvirtd restarts.
   virtlockd will need to be able to re-exec itself while
   maintaining locks. This is simpler to achieve if its
   sole job is maintaining locks

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
.gitignore
cfg.mk
libvirt.spec.in
po/POTFILES.in
src/Makefile.am
src/locking/lock_daemon.c [new file with mode: 0644]
src/locking/lock_daemon.h [new file with mode: 0644]
src/locking/lock_daemon_config.c [new file with mode: 0644]
src/locking/lock_daemon_config.h [new file with mode: 0644]
src/locking/virtlockd.init.in [new file with mode: 0644]
src/locking/virtlockd.sysconf [new file with mode: 0644]