Skip to contentSkip to conversation

Cluster Project branch, master, updated. cluster-2.99.05-57-g2e429a3

Cluster-devel [email protected] 1 participant 1 message Jul 9, 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=2e429a3f1a4fa95dfae4365f8d3afd9bd25608f2

The branch, master has been updated

       via  2e429a3f1a4fa95dfae4365f8d3afd9bd25608f2 (commit)
      from  e88a7d8044de44be39369f99d65bdb818e478c97 (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 2e429a3f1a4fa95dfae4365f8d3afd9bd25608f2

Author: David Teigland <[email protected]>
Date:   Wed Jul 9 13:44:24 2008 -0500

gfs_controld: add query code

Also let group_tool query new daemons.

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

Summary of changes:

 fence/fenced/fenced.h               |    4 +-
 group/gfs_controld/cpg-new.c        |    1 +
 group/gfs_controld/gfs_daemon.h     |   14 ++-
 group/gfs_controld/group.c          |   21 ++
 group/gfs_controld/main.c           |  129 ++++++++++++
 group/libgfscontrol/libgfscontrol.h |   16 +-
 group/tool/Makefile                 |    7 +-
 group/tool/main.c                   |  392 +++++++++++++++++++++++++----------
 8 files changed, 462 insertions(+), 122 deletions(-)
fence/fenced/fenced.h +2 -2
index cb09e12..fb7d951 100644
@@ -7,8 +7,8 @@
 /* should match the same in fd.h */
 #define MAX_NODENAME_LEN		255
 
-#define FENCED_SOCK_PATH		"fenced_socket"
-#define FENCED_QUERY_SOCK_PATH		"fenced_query_socket"
+#define FENCED_SOCK_PATH		"fenced_sock"
+#define FENCED_QUERY_SOCK_PATH		"fenced_query_sock"
 
 #define FENCED_MAGIC			0x0FE11CED
 #define FENCED_VERSION			0x00010001
group/gfs_controld/cpg-new.c +1 -0
index 95cc007..7070842 100644
@@ -2593,3 +2593,4 @@ int set_mountgroup_nodes(struct mountgroup *mg, int option, int *node_count,
 	*nodes_out = nodes;
 	return 0;
 }
+
group/gfs_controld/gfs_daemon.h +13 -1
index 58fa69e..7b1983a 100644
@@ -208,6 +208,11 @@ void process_mountgroups(void);
 int gfs_join_mountgroup(struct mountgroup *mg);
 void gfs_leave_mountgroup(char *name, int mnterr);
 void gfs_mount_done(struct mountgroup *mg);
+int set_mountgroup_info(struct mountgroup *mg, struct gfsc_mountgroup *out);
+int set_node_info(struct mountgroup *mg, int nodeid, struct gfsc_node *node);
+int set_mountgroups(int *count, struct gfsc_mountgroup **mgs_out);
+int set_mountgroup_nodes(struct mountgroup *mg, int option, int *node_count,
+	struct gfsc_node **nodes_out);
 
 /* cpg-old.c */
 int setup_cpg_old(void);
@@ -216,7 +221,7 @@ int gfs_join_mountgroup_old(struct mountgroup *mg, struct gfsc_mount_args *ma);
 void gfs_leave_mountgroup_old(char *name, int mnterr);
 int send_group_message_old(struct mountgroup *mg, int len, char *buf);
 void save_message_old(struct mountgroup *mg, char *buf, int len, int from,
-		      int type);
+	int type);
 void send_withdraw_old(struct mountgroup *mg);
 int process_recovery_uevent_old(char *table);
 void ping_kernel_mount_old(char *table);
@@ -231,6 +236,13 @@ int do_withdraw_old(char *table);
 /* group.c */
 int setup_groupd(void);
 void process_groupd(int ci);
+int set_mountgroup_info_group(struct mountgroup *mg,
+	struct gfsc_mountgroup *out);
+int set_node_info_group(struct mountgroup *mg, int nodeid,
+	struct gfsc_node *node);
+int set_mountgroups_group(int *count, struct gfsc_mountgroup **mgs_out);
+int set_mountgroup_nodes_group(struct mountgroup *mg, int option,
+	int *node_count, struct gfsc_node **nodes_out);
 
 /* main.c */
 int do_read(int fd, void *buf, size_t count);
group/gfs_controld/group.c +21 -0
index 0a6f530..6707341 100644
@@ -175,3 +175,24 @@ int setup_groupd(void)
 	return rv;
 }
 
+int set_mountgroup_info_group(struct mountgroup *mg, struct gfsc_mountgroup *out)
+{
+	return 0;
+}
+
+int set_node_info_group(struct mountgroup *mg, int nodeid, struct gfsc_node *node)
+{
+	return 0;
+}
+
+int set_mountgroups_group(int *count, struct gfsc_mountgroup **mgs_out)
+{
+	return 0;
+}
+
+int set_mountgroup_nodes_group(struct mountgroup *mg, int option, int *node_count,
+			       struct gfsc_node **nodes_out)
+{
+	return 0;
+}
+
group/gfs_controld/main.c +129 -0

147 lines not on this page · raw message

group/libgfscontrol/libgfscontrol.h +8 -8
index 90578e5..28b20e5 100644
@@ -15,9 +15,9 @@
 #define GFSC_NF_DISALLOWED		0x00000004 /* node disallowed in cg */
 #define GFSC_NF_KERNEL_MOUNT_DONE	0x00000008
 #define GFSC_NF_KERNEL_MOUNT_ERROR	0x00000010
-#define GFSC_NF_READONLY		0x00000010
-#define GFSC_NF_SPECTATOR		0x00000010
-#define GFSC_NF_CHECK_DLM		0x00000010
+#define GFSC_NF_READONLY		0x00000020
+#define GFSC_NF_SPECTATOR		0x00000040
+#define GFSC_NF_CHECK_DLM		0x00000080
 
 struct gfsc_node {
 	int nodeid;
@@ -42,11 +42,11 @@ struct gfsc_change {
 #define GFSC_MF_JOINING			0x00000001
 #define GFSC_MF_LEAVING			0x00000002
 #define GFSC_MF_KERNEL_STOPPED		0x00000004
-#define GFSC_MF_KERNEL_MOUNT_DONE	0x00000004
-#define GFSC_MF_KERNEL_MOUNT_ERROR	0x00000004
-#define GFSC_MF_FIRST_RECOVERY_NEEDED	0x00000008
-#define GFSC_MF_FIRST_RECOVERY_MSG	0x00000010
-#define GFSC_MF_LOCAL_RECOVERY_BUSY	0x00000020
+#define GFSC_MF_KERNEL_MOUNT_DONE	0x00000008
+#define GFSC_MF_KERNEL_MOUNT_ERROR	0x00000010
+#define GFSC_MF_FIRST_RECOVERY_NEEDED	0x00000020
+#define GFSC_MF_FIRST_RECOVERY_MSG	0x00000040
+#define GFSC_MF_LOCAL_RECOVERY_BUSY	0x00000080
 
 struct gfsc_mountgroup {
 	struct gfsc_change cg_prev;	/* completed change (started_change) */
group/tool/Makefile +6 -1
index 30ba011..e7cbd58 100644
@@ -13,10 +13,15 @@ include $(OBJDIR)/make/uninstall.mk
 OBJS=	main.o
 
 CFLAGS += -I$(S) -I$(S)/../daemon/ -I$(S)/../lib/
+CFLAGS += -I${dlmcontrolincdir}
+CFLAGS += -I$(S)/../../fence/libfenced
+CFLAGS += -I$(S)/../libgfscontrol
 CFLAGS += -I${incdir}
 
 LDFLAGS += -L../lib -lgroup
-
+LDFLAGS += -L${dlmcontrollibdir} -ldlmcontrol
+LDFLAGS += -L../../fence/libfenced -lfenced
+LDFLAGS += -L../libgfscontrol -lgfscontrol
 
 ${TARGET}: ${OBJS}
 	$(CC) -o $@ $^ $(LDFLAGS)
group/tool/main.c +282 -110

518 lines not on this page · raw message

hooks/post-receive
--
Cluster Project