On 06/17/2011 06:38 AM, Daniel P. Berrange wrote:
@@ -438,10 +438,17 @@ int qemudLoadDriverConfig(struct qemud_driver
*driver,
p = virConfGetValue (conf, "lock_manager");
CHECK_TYPE ("lock_manager", VIR_CONF_STRING);
if (p && p->str) {
+ char *lockConf;
virLockManagerPluginUnref(driver->lockManager);
+ if (virAsprintf(&lockConf, "%s/libvirt/qemu-%s.conf", SYSCONFDIR,
p->str) < 0) {
This could be:
SYSCONFDIR "/libvirt/qemu-%s.conf", p->str
but that's probably in the noise, so no need to change if you don't want to.
--
Eric Blake eblake(a)redhat.com +1-801-349-2682
Libvirt virtualization library
http://libvirt.org