[libvirt] [PATCH 1/3] Allow per-driver config file for lock manager plugins
Eric Blake
eblake at redhat.com
Thu Jun 23 13:40:59 UTC 2011
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 at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110623/84d77c37/attachment-0001.sig>
More information about the libvir-list
mailing list