CVSROOT: /cvs/cluster
Module name: cluster
Changes by: [EMAIL PROTECTED] 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)