From: fabbione@sourceware.org <fabbione@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/fence/agents/xvm fence_xvmd.c
Date: 14 Dec 2007 14:49:40 -0000 [thread overview]
Message-ID: <20071214144940.12167.qmail@sourceware.org> (raw)
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 <soren@ubuntu.com>
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/fence_xvmd.c.diff?cvsroot=cluster&r1=1.13&r2=1.14
--- cluster/fence/agents/xvm/fence_xvmd.c 2007/10/17 18:29:57 1.13
+++ cluster/fence/agents/xvm/fence_xvmd.c 2007/12/14 14:49:34 1.14
@@ -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));
next reply other threads:[~2007-12-14 14:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-14 14:49 fabbione [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-11-19 17:28 [Cluster-devel] cluster/fence/agents/xvm fence_xvmd.c lhh
2007-10-17 18:29 lhh
2007-10-17 18:21 lhh
2007-09-11 13:44 pcaulfield
2007-01-10 20:31 lhh
2007-01-10 20:30 lhh
2007-01-10 20:25 lhh
2006-12-04 17:26 lhh
2006-12-04 17:26 lhh
2006-12-04 17:25 lhh
2006-12-01 22:14 lhh
2006-12-01 22:13 lhh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071214144940.12167.qmail@sourceware.org \
--to=fabbione@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).