Skip to contentSkip to conversation

cluster cmirror/src/Makefile cmirror/src/clust ...

Cluster-devel [email protected] 1 participant 1 message Nov 8, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: jbrassow at sourceware.org 2007-11-08 22:16:53

Modified files:
cmirror/src : Makefile cluster.c functions.c local.c
cmirror-kernel/src: dm-clog-tfr.c dm-clog-tfr.h
Added files:
cmirror/src : rbtree.c rbtree.h

Log message:
- only write the disk log on a 'flush' not every time a mark/clear happens

- Add mark request tracking so we don't clear log bits prematurely (and to reduce number of disk writes).

- Add priority recovery - regions which are being written to take first priority during recovery

- introduction of CPG flow control

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cmirror/src/rbtree.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cmirror/src/rbtree.h.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cmirror/src/Makefile.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.3.2.3&r2=1.3.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cmirror/src/cluster.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.4&r2=1.1.2.5
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cmirror/src/functions.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cmirror/src/local.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cmirror-kernel/src/dm-clog-tfr.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.2&r2=1.1.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cmirror-kernel/src/dm-clog-tfr.h.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.2&r2=1.1.2.3

cmirror/src/Attic/Makefile +4 -1
@@ -23,6 +23,8 @@
 	echo '-I${incdir}'; else \
 	echo ''; fi)
 
+SOURCES = $(shell ls *.c)
+
 ifneq (${TMP_INCLUDE}, )
 INCLUDE += ${TMP_INCLUDE} -I.
 else
@@ -42,7 +44,8 @@
 
 all: ${TARGET}
 
-clogd: link_mon.c logging.c queues.c local.c cluster.c functions.c clogd.c
+#clogd: rbtree.c link_mon.c logging.c queues.c local.c cluster.c functions.c clogd.c
+clogd: ${SOURCES}
 	${CC} ${CFLAGS} -o $@ $^ ${LDFLAGS}
 
 no_files:
cmirror/src/Attic/cluster.c +60 -53

164 lines not on this page · raw message

cmirror/src/Attic/functions.c +234 -20

411 lines not on this page · raw message

cmirror/src/Attic/local.c +5 -1
@@ -30,12 +30,14 @@
 
 	r = recv(cn_fd, buf, sizeof(buf), 0);
 	if (r < 0) {
+		LOG_ERROR("Failed to recv message from kernel");
 		r = -errno;
 		goto out;
 	}
 
 	switch (((struct nlmsghdr *)buf)->nlmsg_type) {
 	case NLMSG_ERROR:
+		LOG_ERROR("Unable to recv message from kernel: NLMSG_ERROR");
 		r = -EBADE;
 		break;
 	case NLMSG_DONE:
@@ -77,8 +79,10 @@
 	 * A failure to allocate space means the request is lost
 	 * The kernel must retry
 	 */
-	if (!(*tfr = queue_remove(free_queue)))
+	if (!(*tfr = queue_remove(free_queue))) {
+		LOG_ERROR("Failed to get clog_tfr from free_queue");
 		return -ENOMEM;
+	}
 
 	memset(*tfr, 0, sizeof(struct clog_tfr));
 
cmirror-kernel/src/dm-clog-tfr.c +5 -0
@@ -81,6 +81,11 @@
 	}
 
 	list_for_each_entry(pkg, &recieving_list, list) {
+		/*
+		DMINFO("Msg from userspace recieved [%s].", RQ_TYPE(tfr->request_type));
+		DMINFO("  Seq # recieved: %llu    Seq # wanted: %llu",
+		       pkg->seq, tfr->seq);
+		*/
 		if (tfr->seq == pkg->seq) {
 			if (tfr->data_size > *(pkg->data_size)) {
 				DMERR("Insufficient space to recieve package [%s]",
cmirror-kernel/src/dm-clog-tfr.h +1 -1
@@ -63,7 +63,7 @@
 };
 
 #ifdef __KERNEL__
-#define DM_MSG_PREFIX "clulog"
+#define DM_MSG_PREFIX "dm-log-clustered"
 
 int dm_clog_tfr_init(void);
 void dm_clog_tfr_exit(void);