FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 01-03-2008, 02:33 PM
Patrick Caulfeld
 
Default RFC: cman changes

This patch changes the way cman works internally - it decouples it from
CCS so that any configuration system can be used. Provided the necessary
keys are filled in the objdb then cman can use them. Currently the only
alternative is /etc/ais/openais.conf, but it should be relatively easy
to add others (eg LDAP) as people feel the need.

Patrick
 
Old 01-03-2008, 07:11 PM
"Fabio M. Di Nitto"
 
Default RFC: cman changes

On Thu, 3 Jan 2008, Patrick Caulfeld wrote:


This patch changes the way cman works internally - it decouples it from
CCS so that any configuration system can be used. Provided the necessary
keys are filled in the objdb then cman can use them. Currently the only
alternative is /etc/ais/openais.conf, but it should be relatively easy
to add others (eg LDAP) as people feel the need.

Patrick



Only a few _minor_ details:

the patch needs a better rediff. This one doesn't apply clean on top of
HEAD but nothing too bad


Some bits:

+ if (comline->two_node) {
+ snprintf(scratch, sizeof(scratch), "CMAN_2NODE=true");
+ envp[envptr++] = strdup(scratch);
+ }

this one could land anytime (with it's getenv counterpart)

----

+ .name = (char *)"openais CMAN membership
service 2.50",


I think we should be targetting 2.9x in preparation for 3.0

----

+ // TODO get config_version ??



----

For the Makefile, just commit this one instead. Diff from the one that I
did send you early is copyright update and do not link with libccs if we
don't need to. Sorry for this double one


Thanks
Fabio

################################################## #############################
################################################## #############################
##
## Copyright (C) 2004-2008 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
## of the GNU General Public License v.2.
##
################################################## #############################
################################################## #############################

TARGET1= service_cman.lcrso
TARGET2= config_ccs.lcrso
TARGET3= config_cmanpre.lcrso

LCRSOT=$(TARGET1) $(TARGET2) $(TARGET3)

all: depends ${TARGET1} ${TARGET2} ${TARGET3}

include ../../make/defines.mk
include $(OBJDIR)/make/cobj.mk
include $(OBJDIR)/make/clean.mk
include $(OBJDIR)/make/install.mk
include $(OBJDIR)/make/uninstall.mk

CFLAGS += -fPIC
CFLAGS += -I${ccsincdir} -I${openaisincdir}
CFLAGS += -I${incdir}

CCS_LDFLAGS += -L${ccslibdir} -lccs

OBJS1= daemon.o
logging.o
ais.o
commands.o
barrier.o
cmanconfig.o

OBJS2= config.o logging.o

OBJS3= cman-preconfig.o
logging.o

${TARGET1}: ${OBJS1}
$(CC) -shared -Wl,-soname,$@ -o $@ $^ $(LDFLAGS)

${TARGET2}: ${OBJS2}
$(CC) -shared -Wl,-soname,$@ -o $@ $^ $(LDFLAGS) $(CCS_LDFLAGS)

${TARGET3}: ${OBJS3}
$(CC) -shared -Wl,-soname,$@ -o $@ $^ $(LDFLAGS)

depends:
$(MAKE) -C ../lib all

clean: generalclean

--
I'm going to make him an offer he can't refuse.
 

Thread Tools




All times are GMT. The time now is 07:43 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org