Skip to contentSkip to conversation

Cluster Project branch, master, updated. cluster-2.99.04-53-g2a8c5d4

Cluster-devel [email protected] 1 participant 1 message Jun 20, 2008

lore
Share & tools
lore
#0 lore raw

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".

http://sources.redhat.com/git/gitweb.cgi?p=cluster.git;a=commitdiff;h=2a8c5d4d91e5ff0467cbe20fce4b230c19a75376

The branch, master has been updated

       via  2a8c5d4d91e5ff0467cbe20fce4b230c19a75376 (commit)
      from  837e9238be257221fffe7abe1efccbe1332ce810 (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 2a8c5d4d91e5ff0467cbe20fce4b230c19a75376

Author: David Teigland <[email protected]>
Date:   Mon Jun 2 10:50:51 2008 -0500

gfs_controld: new version

Uses libcpg directly instead of libgroup/groupd, like we've already done for fenced and dlm_controld.

-----------------------------------------------------------------------

Summary of changes:

 dlm/libdlmcontrol/libdlmcontrol.h          |    3 +
 dlm/libdlmcontrol/main.c                   |   12 +-
 group/gfs_controld/Makefile                |    7 +-
 group/gfs_controld/cpg-new.c               | 2565 ++++++++++++++++++++++++++++
 group/gfs_controld/cpg-old.c               |  261 +---
 group/gfs_controld/cpg-old.h               |    2 +-
 group/{dlm_controld => gfs_controld}/crc.c |   14 +-
 group/gfs_controld/gfs_daemon.h            |   74 +-
 group/gfs_controld/main.c                  |  262 +++-
 group/gfs_controld/plock.c                 |    6 +-
 group/gfs_controld/util.c                  |   29 +-
 11 files changed, 2936 insertions(+), 299 deletions(-)
 create mode 100644 group/gfs_controld/cpg-new.c
 copy group/{dlm_controld => gfs_controld}/crc.c (86%)
dlm/libdlmcontrol/libdlmcontrol.h +3 -0
index 5f03377..83ddf6f 100644
@@ -73,6 +73,9 @@ int dlmc_lockspaces(int max, int *count, struct dlmc_lockspace *lss);
 int dlmc_lockspace_nodes(char *lsname, int type, int max, int *count,
 			 struct dlmc_node *nodes);
 
+#define DLMC_RESULT_REGISTER	1
+#define DLMC_RESULT_NOTIFIED	2
+
 int dlmc_fs_connect(void);
 void dlmc_fs_disconnect(int fd);
 int dlmc_fs_register(int fd, char *name);
dlm/libdlmcontrol/main.c +11 -1
index 4354fba..c31afb8 100644
@@ -376,9 +376,19 @@ int dlmc_fs_result(int fd, char *name, int *type, int *nodeid, int *result)
 		goto out;
 
 	strncpy(name, h.name, DLM_LOCKSPACE_LEN);
-	*type = h.command;
 	*nodeid = h.option;
 	*result = h.data;
+
+	switch (h.command) {
+	case DLMC_CMD_FS_REGISTER:
+		*type = DLMC_RESULT_REGISTER;
+		break;
+	case DLMC_CMD_FS_NOTIFIED:
+		*type = DLMC_RESULT_NOTIFIED;
+		break;
+	default:
+		*type = 0;
+	}
  out:
 	return rv;
 }
group/gfs_controld/Makefile +4 -3
index e117d5b..368435c 100644
@@ -13,24 +13,25 @@ include $(OBJDIR)/make/uninstall.mk
 OBJS= 	main.o \
 	member_cman.o \
 	config.o \
+	crc.o \
+	cpg-new.o \
 	cpg-old.o \
 	group.o \
 	util.o \
 	plock.o
 
-CFLAGS += -I${ccsincdir} -I${cmanincdir} -I${openaisincdir}
+CFLAGS += -I${ccsincdir} -I${cmanincdir} -I${dlmcontrolincdir}
 CFLAGS += -I${openaisincdir}
 CFLAGS += -I${KERNEL_SRC}/include/
 CFLAGS += -I$(S)/../libgfscontrol -I$(S)/../../fence/libfenced/
 CFLAGS += -I$(S)/../lib/ -I$(S)/../include/
 CFLAGS += -I${incdir}
 
-LDFLAGS += -L${ccslibdir} -L${cmanlibdir} -lcman -lccs
+LDFLAGS += -L${ccslibdir} -L${cmanlibdir} -lcman -lccs -ldlmcontrol
 LDFLAGS += -L${openaislibdir} -lcpg -lSaCkpt
 LDFLAGS += -L../../fence/libfenced/ -lfenced
 LDFLAGS += -L../lib -lgroup
 
-
 ${TARGET}: ${OBJS}
 	$(CC) -o $@ $^ $(LDFLAGS)
 
group/gfs_controld/cpg-new.c new file +2565 -0

2,565 lines not on this page · raw message

group/gfs_controld/cpg-old.c +40 -221

378 lines not on this page · raw message

group/gfs_controld/cpg-old.h +1 -1
index 2fe3720..e343faf 100644

Lines of this file are not shown. View the raw message.

group/gfs_controld/crc.c renamed from group/dlm_controld/crc.c +13 -1
similarity index 86%
copy from group/dlm_controld/crc.c
copy to group/gfs_controld/crc.c
index ff8c1d3..5dd09c7 100644

Lines of this file are not shown. View the raw message.

group/gfs_controld/gfs_daemon.h +49 -25

74 lines not on this page · raw message

group/gfs_controld/main.c +220 -42

262 lines not on this page · raw message

group/gfs_controld/plock.c +2 -4
index bb01237..0b485a2 100644

Lines of this file are not shown. View the raw message.

group/gfs_controld/util.c +28 -1
index 13eee5f..7c93934 100644

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.