[libvirt] [Libvirt-announce] Availability of 0.10.0 release candidate 2

Justin Clift jclift at redhat.com
Tue Aug 28 12:26:59 UTC 2012


On 28/08/2012, at 6:05 PM, Daniel Veillard wrote:
<snip>
> I would suggest a fix along those lines:
> 
> Daniel
> 
> diff --git a/daemon/libvirtd.c b/daemon/libvirtd.c
> index 19dd26b..352d4fe 100644
> --- a/daemon/libvirtd.c
> +++ b/daemon/libvirtd.c
> @@ -1312,17 +1312,21 @@ int main(int argc, char **argv) {
>         goto cleanup;
>     }
> 
> +#if defined(__linux__) && defined(NETLINK_ROUTE)
>     /* Register the netlink event service for NETLINK_ROUTE */
>     if (virNetlinkEventServiceStart(NETLINK_ROUTE, 0) < 0) {
>         ret = VIR_DAEMON_ERR_NETWORK;
>         goto cleanup;
>     }
> +#endif
> 
> +#if defined(__linux__) && defined(NETLINK_KOBJECT_UEVENT)
>     /* Register the netlink event service for NETLINK_KOBJECT_UEVENT */
>     if (virNetlinkEventServiceStart(NETLINK_KOBJECT_UEVENT, 1) < 0) {
>         ret = VIR_DAEMON_ERR_NETWORK;
>         goto cleanup;
>     }
> +#endif
> 
>     /* Run event loop. */
>     virNetServerRun(srv);

Just tested this to be absolutely sure, and it definitely works too.
ie. as alternative approach to Doug's patch.

+ Justin

--
Aeolus Community Manager
http://www.aeolusproject.org




More information about the libvir-list mailing list