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
domain_lock.h src/locking: use #pragma once in headers 2019-06-19 17:12:30 +02:00
libvirt_lockd.aug
libvirt_sanlock.aug
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
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
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
lock_manager.h src/locking: use #pragma once in headers 2019-06-19 17:12:30 +02:00
lock_protocol.x
lockd.conf
Makefile.inc.am build: honour $(runstatedir) in make rules 2019-08-27 10:23:11 +01:00
sanlock_helper.c
sanlock.conf
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
virtlockd.conf
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