Cluster Project branch, master, updated. gfs-kernel_0_1_22-196-g07e949f
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Cluster Project".
The branch, master has been updated
via 07e949fa5bc4eef61f16974bf1cc5a5adb9568a4 (commit)
from 0b3fc5e8a21cc8e2011f513892c9e65eb399e9bb (commit)Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 07e949fa5bc4eef61f16974bf1cc5a5adb9568a4
Author: David Teigland <[email protected]> Date: Wed Apr 16 12:55:59 2008 -0500
fenced: new version
In the same theme as the new version of dlm_controld.
- uses libcpg directly without libgroup (use the -g0 option)
- runs in backward compat mode by default, using libgroup to interact with old groupd/fenced (-g1 option)
- move code that runs agents (agent.c) into libfence
-----------------------------------------------------------------------
Summary of changes:
fence/fence_node/Makefile | 15 +-
fence/fence_node/fence_node.c | 15 +-
fence/fenced/Makefile | 12 +-
fence/fenced/config.c | 140 ++++
fence/fenced/cpg.c | 1175 +++++++++++++++++++++++++++++++++
fence/fenced/fd.h | 294 +++++---
fence/fenced/group.c | 285 +++++++-
fence/fenced/main.c | 780 +++++++++++-----------
fence/fenced/member_cman.c | 133 ++---
fence/fenced/recover.c | 328 ++--------
{gfs => fence}/include/linux_endian.h | 0
fence/include/list.h | 11 +
{cman => fence}/lib/Makefile | 24 +-
fence/{fenced => lib}/agent.c | 40 +-
fence/lib/libfence.h | 36 +
group/dlm_controld/main.c | 2 +-
16 files changed, 2310 insertions(+), 980 deletions(-)
create mode 100644 fence/fenced/config.c
create mode 100644 fence/fenced/cpg.c
copy {gfs => fence}/include/linux_endian.h (100%)
copy {cman => fence}/lib/Makefile (67%)
rename fence/{fenced => lib}/agent.c (89%)
create mode 100644 fence/lib/libfence.hfence/fence_node/Makefile +6 -9
@@ -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-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
@@ -15,7 +15,7 @@ TARGET = fence_node SBINDIRT=$(TARGET) -all: depends ${TARGET} +all: ${TARGET} include ../../make/defines.mk include $(OBJDIR)/make/cobj.mk
@@ -23,23 +23,20 @@ include $(OBJDIR)/make/clean.mk include $(OBJDIR)/make/install.mk include $(OBJDIR)/make/uninstall.mk -OBJS= ../fenced/agent.o \ - fence_node.o +OBJS= fence_node.o CFLAGS += -D_FILE_OFFSET_BITS=64 -CFLAGS += -I${ccsincdir} -I${cmanincdir} +CFLAGS += -I${ccsincdir} -I../lib CFLAGS += -I../include CFLAGS += -I${incdir} -LDFLAGS += -L${ccslibdir} -L${cmanlibdir} -lccs -lcman +LDFLAGS += -L${ccslibdir} -lccs +LDFLAGS += -L../lib -lfence ${TARGET}: ${OBJS} $(CC) -o $@ $^ $(LDFLAGS) -depends: - $(MAKE) -C ../fenced agent.o - clean: generalclean -include $(OBJS:.o=.d)
fence/fence_node/fence_node.c +4 -11
@@ -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-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
@@ -17,9 +17,10 @@#include <string.h> #include <syslog.h> +#include "libfence.h" #include "copyright.cf" -#define OPTION_STRING ("hOuV") +#define OPTION_STRING ("huV") #define die(fmt, args...) \ do \
@@ -31,9 +32,6 @@ do \while (0 ) static char *prog_name; -static int force =0 ; - -int dispatch_fence_agent (char *victim,int force);static void print_usage (void ) {
@@ -44,7 +42,6 @@ static void print_usage(void)printf ("Options:\n" );printf ("\n" );printf (" -h Print this help, then exit\n" ); -printf (" -O Force connection to CCS\n" );printf (" -V Print program version information, then exit\n" );printf ("\n" ); }
@@ -66,10 +63,6 @@ int main(int argc, char *argv[])exit (EXIT_SUCCESS );break ; -case 'O' : - force =1 ; -break ; -case 'V' :printf ("%s %s (built %s %s)\n" , prog_name,RELEASE_VERSION , __DATE__, __TIME__);
@@ -105,7 +98,7 @@ int main(int argc, char *argv[])openlog ("fence_node" ,LOG_PID ,LOG_USER ); - error =dispatch_fence_agent (victim, force); + error =fence_node (victim);if (error) {syslog (LOG_ERR ,"Fence of \"%s\" was unsuccessful\n" , victim);
fence/fenced/Makefile +7 -5
@@ -23,18 +23,20 @@ include $(OBJDIR)/make/clean.mk include $(OBJDIR)/make/install.mk include $(OBJDIR)/make/uninstall.mk -OBJS= main.o \ - recover.o \ +OBJS= config.o \ + cpg.o \ group.o \ + main.o \ member_cman.o \ - agent.o + recover.o CFLAGS += -D_FILE_OFFSET_BITS=64 -CFLAGS += -I${ccsincdir} -I${cmanincdir} +CFLAGS += -I${ccsincdir} -I${cmanincdir} -I${openaisincdir} CFLAGS += -I$(S) -I$(S)/../include -I$(SRCDIR)/group/lib CFLAGS += -I${incdir} -LDFLAGS += -L${ccslibdir} -L${cmanlibdir} -lccs -lcman +LDFLAGS += -L${ccslibdir} -L${cmanlibdir} -L${openaislibdir} -lccs -lcman -lcpg +LDFLAGS += -L../lib -lfence LDFLAGS += -L../../group/lib -l group
fence/fenced/config.c new file +140 -0
140 lines not on this page · raw message
fence/fenced/cpg.c new file +1175 -0
1,175 lines not on this page · raw message
fence/fenced/fd.h +183 -111
366 lines not on this page · raw message
fence/fenced/group.c +251 -34
366 lines not on this page · raw message
fence/fenced/main.c +394 -386
832 lines not on this page · raw message
fence/fenced/member_cman.c +38 -95
133 lines not on this page · raw message
fence/fenced/recover.c +51 -277
328 lines not on this page · raw message
fence/include/linux_endian.h renamed from gfs/include/linux_endian.h +0 -0
fence/lib/Makefile renamed from cman/lib/Makefile +9 -15
Lines of this file are not shown. View the raw message.
fence/lib/agent.c renamed from fence/fenced/agent.c +4 -36
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
hooks/post-receive
--
Cluster Project
Part of the diff is not shown here. View the raw message.