[libvirt] [PATCH] [4/6] Add the script hook support to the libvirt daemon

Eric Blake eblake at redhat.com
Fri Mar 26 17:00:54 UTC 2010


On 03/26/2010 09:44 AM, Daniel Veillard wrote:
>  
> +    /* setup the hooks */
> +    virHookInitialize();

Shouldn't this check for a return of -1?

> +
>      /* Disable error func, now logging is setup */
>      virSetErrorFunc(NULL, virshErrorHandler);
>  
> +    /*
> +     * Call the daemon startup hook
> +     */
> +    virHookCall(VIR_HOOK_DRIVER_DAEMON, "-", VIR_HOOK_DAEMON_OP_START,
> +                0, "start", NULL);

For that matter, virHookCall calls virHookInitialize under the hood, do
we need to repeat that ourselves?  And if we don't need to repeat it,
does virHookInitialize still need to be exported?

Should we check for virHookCall failure?

-- 
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: 323 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100326/c7db3c9d/attachment-0001.sig>


More information about the libvir-list mailing list