From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/fence/fenced agent.c
Date: 9 Oct 2007 22:14:44 -0000 [thread overview]
Message-ID: <20071009221444.4591.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rmccabe at sourceware.org 2007-10-09 22:14:44
Modified files:
fence/fenced : agent.c
Log message:
Allow valid addresses of nodes even if they're not identical to the way they're specified in cluster.conf
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/fenced/agent.c.diff?cvsroot=cluster&r1=1.16&r2=1.17
--- cluster/fence/fenced/agent.c 2007/02/22 16:12:42 1.16
+++ cluster/fence/fenced/agent.c 2007/10/09 22:14:44 1.17
@@ -2,7 +2,7 @@
*******************************************************************************
**
** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
-** Copyright (C) 2004 Red Hat, Inc. All rights reserved.
+** Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
**
** This copyrighted material is made available to anyone wishing to use,
** modify, copy, or redistribute it subject to the terms and conditions
@@ -305,8 +305,12 @@
int dispatch_fence_agent(int cd, char *victim)
{
char *method = NULL, *device = NULL;
+ char *victim_nodename = NULL;
int num_methods, num_devices, m, d, error = -1;
+ if (ccs_lookup_nodename(cd, victim, &victim_nodename) == 0)
+ victim = victim_nodename;
+
num_methods = count_methods(cd, victim);
for (m = 0; m < num_methods; m++) {
@@ -336,6 +340,8 @@
if (device)
free(device);
+ if (victim_nodename)
+ free(victim_nodename);
free(method);
if (!error)
next reply other threads:[~2007-10-09 22:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-09 22:14 rmccabe [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-10-26 18:46 [Cluster-devel] cluster/fence/fenced agent.c rmccabe
2007-10-26 19:20 rmccabe
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=20071009221444.4591.qmail@sourceware.org \
--to=rmccabe@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).