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

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

 



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

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]