libvirt/src/locking
Daniel P. Berrangé b1b878c512 util: activate directory override when used from library
The Perl bindings for libvirt use the test driver for unit tests. This
tries to load the cpu_map/index.xml file, and when run from an
uninstalled build will fail.

The problem is that virFileActivateDirOverride is called by our various
binaries like libvirtd, virsh, but is not called when a 3rd party app
uses libvirt.so

To deal with this we allow the LIBVIRT_DIR_OVERRIDE=1 env variable to be
set and make virInitialize look for this. The 'run' script will set it,
so now build using this script to run against an uninstalled tree we
will correctly resolve files to the source tree.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-09-10 11:03:35 +01:00
..
domain_lock.c locking: Use virDomainLockImage[Attach|Detach] instead of *Disk 2019-01-30 17:20:38 +01:00
domain_lock.h src/locking: use #pragma once in headers 2019-06-19 17:12:30 +02:00
libvirt_lockd.aug Check for tabs in augeas files 2018-01-31 15:19:26 +00:00
libvirt_sanlock.aug locking: Add io_timeout to sanlock 2015-11-18 10:56:56 +01:00
lock_daemon_config.c lib: Define and use autofree for virConfPtr 2019-09-10 09:34:37 +02:00
lock_daemon_config.h src/locking: use #pragma once in headers 2019-06-19 17:12:30 +02:00
lock_daemon_dispatch.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
lock_daemon_dispatch.h src/locking: use #pragma once in headers 2019-06-19 17:12:30 +02:00
lock_daemon.c util: activate directory override when used from library 2019-09-10 11:03:35 +01:00
lock_daemon.h src/locking: use #pragma once in headers 2019-06-19 17:12:30 +02:00
lock_driver_lockd.c lib: Define and use autofree for virConfPtr 2019-09-10 09:34:37 +02:00
lock_driver_lockd.h src/locking: use #pragma once in headers 2019-06-19 17:12:30 +02:00
lock_driver_nop.c src: remove blank first line in function body 2018-09-17 13:29:01 +02:00
lock_driver_nop.h src/locking: use #pragma once in headers 2019-06-19 17:12:30 +02:00
lock_driver_sanlock.c lib: Define and use autofree for virConfPtr 2019-09-10 09:34:37 +02:00
lock_driver.h src/locking: use #pragma once in headers 2019-06-19 17:12:30 +02:00
lock_manager.c Fix names for abs_top_{src,build}dir variables 2019-03-14 10:05:28 +01:00
lock_manager.h src/locking: use #pragma once in headers 2019-06-19 17:12:30 +02:00
lock_protocol.x Fix make check with gcc version 5 2016-01-18 15:19:21 +01:00
lockd.conf Remove unnecessary empty first lines 2014-06-06 10:52:05 +02:00
Makefile.inc.am build: honour $(runstatedir) in make rules 2019-08-27 10:23:11 +01:00
sanlock_helper.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
sanlock.conf locking: Fix documentation on how automatic sanlock leases are stored 2016-12-19 17:28:41 +01:00
test_libvirt_lockd.aug.in build: use @CONFIG@ instead of ::CONFIG:: in augeas tests 2019-08-09 14:06:31 +01:00
test_libvirt_sanlock.aug.in build: use @CONFIG@ instead of ::CONFIG:: in augeas tests 2019-08-09 14:06:31 +01:00
test_virtlockd.aug.in build: use @CONFIG@ instead of ::CONFIG:: in augeas tests 2019-08-09 14:06:31 +01:00
virtlockd-admin.socket.in systemd: honour $runstatedir in socket unit files 2019-08-27 10:23:05 +01:00
virtlockd.aug rpc: remove remains of obsolete log_buffer_size config parameter 2018-03-23 10:44:35 +00:00
virtlockd.conf log: update docs for daemons to improve user understanding 2018-05-11 17:11:46 +01:00
virtlockd.pod src: honour the RUNSTATEDIR variable in all code 2019-08-27 10:23:13 +01:00
virtlockd.service.in build: don't hardcode /etc in the config related files 2019-08-09 14:06:31 +01:00
virtlockd.socket.in systemd: honour $runstatedir in socket unit files 2019-08-27 10:23:05 +01:00
virtlockd.sysconf