cluster/fence/agents/xvm fence_xvmd.c
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: fabbione at sourceware.org 2007-12-14 14:49:38
Modified files:
fence/agents/xvm: fence_xvmd.c
Log message:
Make sure we invoke virConnectOpen with a proper URI. NULL is deprecated in libvirt and we have no control over distro defaults that might not be xen:///.
Patch by Soren Hansen <[email protected]>
fence/agents/xvm/fence_xvmd.c +4 -2
@@ -54,6 +54,8 @@#include "libcman.h" #include "debug.h" +#define LIBVIRT_XEN_URI "xen:///" +static int running =1 ;
@@ -541,7 +543,7 @@virt_list_t *vl =NULL ;virt_state_t *dom =NULL ; - vp =virConnectOpen (NULL ); + vp =virConnectOpen (LIBVIRT_XEN_URI );if (!vp)perror ("virConnectOpen" );
@@ -577,7 +579,7 @@continue ;/* Request and/or timeout: open connection */ - vp =virConnectOpen (NULL ); + vp =virConnectOpen (LIBVIRT_XEN_URI );if (!vp) {printf ("NOTICE: virConnectOpen(): %s; cannot fence!\n" ,strerror (errno));