Skip to contentSkip to conversation

Cluster Project branch, master, updated. cluster-2.99.02-30-gd33f4f1

Cluster-devel [email protected] 1 participant 1 message May 28, 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=d33f4f1df3e8f84603418d0192c1af18794d3136

The branch, master has been updated

       via  d33f4f1df3e8f84603418d0192c1af18794d3136 (commit)
       via  a0beb92c8f95009dccec00bd94390e1b4ccd742d (commit)
       via  4028ac54e1ee56c8069961473344648ec111712f (commit)
      from  d1d29545d7efeefbe4cd540bdd3dfd248d2310c0 (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 d33f4f1df3e8f84603418d0192c1af18794d3136

Author: David Teigland <[email protected]>
Date:   Wed May 21 15:37:38 2008 -0500

gfs_controld: restructuring

- copying the code structure/organization of dlm_controld
- isolate the cluster2 code from what will be the cluster3 code
- add libgfscontrol and gfs_control
- use libgfscontrol between gfs_controld and mount.gfs
- eliminate umount.gfs, no longer used

commit a0beb92c8f95009dccec00bd94390e1b4ccd742d

Author: David Teigland <[email protected]>
Date:   Wed May 21 15:33:50 2008 -0500

gfs_controld: move recover.c

Move recover.c into cpg-old.c in preparation for new version.

commit 4028ac54e1ee56c8069961473344648ec111712f

Author: David Teigland <[email protected]>
Date:   Wed May 14 16:26:06 2008 -0500

gfs_controld: rename files

Renaming files in preparation for new version.

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

Summary of changes:

 gfs2/mount/Makefile                 |   17 +-
 gfs2/mount/mount.gfs2.c             |   20 +-
 gfs2/mount/umount.gfs2.c            |  168 ---
 gfs2/mount/util.c                   |  475 ++-----
 gfs2/mount/util.h                   |    2 +-
 group/gfs_control/Makefile          |   44 +
 group/gfs_control/main.c            |  212 +++
 group/gfs_controld/Makefile         |   12 +-
 group/gfs_controld/config.c         |  180 +++
 group/gfs_controld/config.h         |   47 +
 group/gfs_controld/cpg-old.c        | 2686 +++++++++++++++++++++++++++++++++
 group/gfs_controld/cpg-old.h        |   60 +
 group/gfs_controld/cpg.c            |  289 ----
 group/gfs_controld/gfs_controld.h   |   49 +
 group/gfs_controld/gfs_daemon.h     |  268 ++++
 group/gfs_controld/group.c          |   64 +-
 group/gfs_controld/lock_dlm.h       |  310 ----
 group/gfs_controld/main.c           | 1219 +++++++++-------
 group/gfs_controld/member_cman.c    |   29 +-
 group/gfs_controld/plock.c          |  228 ++--
 group/gfs_controld/recover.c        | 2805 -----------------------------------
 group/gfs_controld/util.c           |  197 +++
 group/libgfscontrol/Makefile        |   53 +
 group/libgfscontrol/libgfscontrol.h |  131 ++
 group/libgfscontrol/main.c          |  437 ++++++
 25 files changed, 5322 insertions(+), 4680 deletions(-)
 delete mode 100644 gfs2/mount/umount.gfs2.c
 create mode 100644 group/gfs_control/Makefile
 create mode 100644 group/gfs_control/main.c
 create mode 100644 group/gfs_controld/config.c
 create mode 100644 group/gfs_controld/config.h
 create mode 100644 group/gfs_controld/cpg-old.c
 create mode 100644 group/gfs_controld/cpg-old.h
 delete mode 100644 group/gfs_controld/cpg.c
 create mode 100644 group/gfs_controld/gfs_controld.h
 create mode 100644 group/gfs_controld/gfs_daemon.h
 delete mode 100644 group/gfs_controld/lock_dlm.h
 delete mode 100644 group/gfs_controld/recover.c
 create mode 100644 group/gfs_controld/util.c
 create mode 100644 group/libgfscontrol/Makefile
 create mode 100644 group/libgfscontrol/libgfscontrol.h
 create mode 100644 group/libgfscontrol/main.c
gfs2/mount/Makefile +6 -11
index 3b01f04..191431f 100644
@@ -11,9 +11,8 @@
 ###############################################################################
 
 TARGET1= mount.gfs2
-TARGET2= umount.gfs2
 
-all: ${TARGET1} ${TARGET2}
+all: ${TARGET1}
 
 include ../../make/defines.mk
 include $(OBJDIR)/make/cobj.mk
@@ -21,8 +20,6 @@ include $(OBJDIR)/make/clean.mk
 
 OBJS1=	mount.gfs2.o
 
-OBJS2=	umount.gfs2.o
-
 SHAREDOBJS= ondisk1.o \
 	    util.o \
 	    mtab.o
@@ -30,25 +27,23 @@ SHAREDOBJS= ondisk1.o \
 CFLAGS += -DHELPER_PROGRAM -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
 CFLAGS += -I${gfskincdir}
 CFLAGS += -I${KERNEL_SRC}/fs/gfs2/ -I${KERNEL_SRC}/include/
-CFLAGS += -I$(S)/../include
+CFLAGS += -I$(S)/../include -I../../group/libgfscontrol/
 CFLAGS += -I${incdir}
 
+LDFLAGS += -L../../group/libgfscontrol/ -lgfscontrol
 
-${TARGET1}: ${SHAREDOBJS} ${OBJS1}
-	$(CC) -o $@ $^ $(LDFLAGS)
 
-${TARGET2}: ${SHAREDOBJS} ${OBJS2}
+${TARGET1}: ${SHAREDOBJS} ${OBJS1}
 	$(CC) -o $@ $^ $(LDFLAGS)
 
 install: all
 	mkdir -p ${DESTDIR}/sbin
-	install ${TARGET1} ${TARGET2} ${DESTDIR}/sbin
+	install ${TARGET1} ${DESTDIR}/sbin
 
 uninstall:
-	${UNINSTALL} ${TARGET1} ${TARGET2} ${DESTDIR}/sbin
+	${UNINSTALL} ${TARGET1} ${DESTDIR}/sbin
 
 clean: generalclean
 
 -include $(OBJS1:.o=.d)
--include $(OBJS2:.o=.d)
 -include $(SHAREDOBJS:.o=.d)
gfs2/mount/mount.gfs2.c +12 -8
index 153b648..6c30d44 100644
@@ -149,11 +149,11 @@ static int mount_lockproto(char *proto, struct mount_options *mo,
 	return rv;
 }
 
-static void mount_result_lockproto(char *proto, struct mount_options *mo,
+static void mount_done_lockproto(char *proto, struct mount_options *mo,
 			     	    struct gen_sb *sb, int result)
 {
 	if (!strcmp(proto, "lock_dlm"))
-		lock_dlm_mount_result(mo, sb, result);
+		lock_dlm_mount_done(mo, sb, result);
 }
 
 static void umount_lockproto(char *proto, struct mount_options *mo,
@@ -227,7 +227,9 @@ int main(int argc, char **argv)
 	   adding the mtab entry */
 	block_sigint();
 
-	if (!fake_mount) {
+	if (fake_mount)
+		goto do_mtab;
+
 	rv = mount_lockproto(proto, &mo, &sb);
 	if (rv < 0)
 		die("error mounting lockproto %s\n", proto);
@@ -235,7 +237,7 @@ int main(int argc, char **argv)
 	rv = mount(mo.dev, mo.dir, fsname, mo.flags, mo.extra_plus);
 	if (rv) {
 		log_debug("mount(2) failed error %d errno %d", rv, errno);
-		mount_result_lockproto(proto, &mo, &sb, rv);
+		mount_done_lockproto(proto, &mo, &sb, rv);
 
 		if (!(mo.flags & MS_REMOUNT))
 			umount_lockproto(proto, &mo, &sb, errno);
@@ -246,17 +248,19 @@ int main(int argc, char **argv)
 		    strerror(errno));
 	}
 	log_debug("mount(2) ok");
-	mount_result_lockproto(proto, &mo, &sb, 0);
-	}
+	mount_done_lockproto(proto, &mo, &sb, 0);
+
+ do_mtab:
+	if (no_mtab)
+		goto out;
 
-	if (!no_mtab) {
 	if (mo.flags & MS_REMOUNT) {
                 del_mtab_entry(&mo);
                 add_mtab_entry(&mo);
         } else
 		add_mtab_entry(&mo);
-	}
 
+ out:
 	unblock_sigint();
 
 	return rv ? 1 : 0;
gfs2/mount/umount.gfs2.c deleted +0 -168

168 lines not on this page · raw message

gfs2/mount/util.c +110 -365

614 lines not on this page · raw message

gfs2/mount/util.h +1 -1
index 89faabc..ffa2dd6 100644
@@ -88,7 +88,7 @@ void parse_opts(struct mount_options *mo);
 void read_proc_mounts(struct mount_options *mo);
 int get_sb(char *device, struct gen_sb *sb_out);
 int lock_dlm_join(struct mount_options *mo, struct gen_sb *sb);
-void lock_dlm_mount_result(struct mount_options *mo, struct gen_sb *sb, int result);
+void lock_dlm_mount_done(struct mount_options *mo, struct gen_sb *sb, int result);
 int lock_dlm_leave(struct mount_options *mo, struct gen_sb *sb, int mnterr);
 int lock_dlm_remount(struct mount_options *mo, struct gen_sb *sb);
 
group/gfs_control/Makefile new file +44 -0

44 lines not on this page · raw message

group/gfs_control/main.c new file +212 -0

212 lines not on this page · raw message

group/gfs_controld/Makefile +7 -5
index 2b05312..5b23bfd 100644
@@ -24,17 +24,19 @@ include $(OBJDIR)/make/uninstall.mk
 
 OBJS= 	main.o \
 	member_cman.o \
-	cpg.o \
+	config.o \
+	cpg-old.o \
 	group.o \
-	plock.o \
-	recover.o
+	util.o \
+	plock.o
 
-CFLAGS += -I${ccsincdir} -I${cmanincdir} -I${openaisincdir}
+CFLAGS += -I${ccsincdir} -I${cmanincdir} -I${openaisincdir} -I${fencedincdir}
 CFLAGS += -I${KERNEL_SRC}/include/
-CFLAGS += -I$(S)/../lib/ -I$(S)/../include/
+CFLAGS += -I$(S)/../lib/ -I$(S)/../include/ -I../libgfscontrol/
 CFLAGS += -I${incdir}
 
 LDFLAGS += -L${ccslibdir} -L${cmanlibdir} -lcman -lccs
+LDFLAGS += -L${fencedlibdir} -lfenced
 LDFLAGS += -L${openaislibdir} -lcpg -lSaCkpt
 LDFLAGS += -L${libdir}
 LDFLAGS += -L../lib -lgroup
group/gfs_controld/config.c new file +180 -0

180 lines not on this page · raw message

group/gfs_controld/config.h new file +47 -0

47 lines not on this page · raw message

group/gfs_controld/cpg-old.c new file +2686 -0

1,601 lines not on this page · raw message

group/gfs_controld/cpg-old.h new file +60 -0

60 lines not on this page · raw message

group/gfs_controld/cpg.c deleted +0 -289

289 lines not on this page · raw message

group/gfs_controld/gfs_controld.h new file +49 -0

49 lines not on this page · raw message

group/gfs_controld/gfs_daemon.h new file +268 -0

268 lines not on this page · raw message

group/gfs_controld/group.c +34 -30

64 lines not on this page · raw message

group/gfs_controld/lock_dlm.h deleted +0 -310

310 lines not on this page · raw message

group/gfs_controld/main.c +671 -548

1,219 lines not on this page · raw message

group/gfs_controld/member_cman.c +7 -22
index 4357e35..4e6fbca 100644

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

group/gfs_controld/plock.c +110 -118

228 lines not on this page · raw message

group/gfs_controld/recover.c deleted +0 -2805

2,805 lines not on this page · raw message

group/gfs_controld/util.c new file +197 -0

197 lines not on this page · raw message

group/libgfscontrol/Makefile new file +53 -0

53 lines not on this page · raw message

group/libgfscontrol/libgfscontrol.h new file +131 -0

131 lines not on this page · raw message

group/libgfscontrol/main.c new file +437 -0

437 lines not on this page · 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.