[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH 1/3] Allow per-driver config file for lock manager plugins



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 redhat com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]