[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/group/gfs_controld main.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL5
Changes by:	teigland sourceware org	2006-12-01 15:29:05

Modified files:
	group/gfs_controld: main.c 

Log message:
	group_tool dump doesn't handle partial reads/writes,
	now we always dump entire fixed size debug buffer
	bz 214540

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/main.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.18.2.6&r2=1.18.2.7

--- cluster/group/gfs_controld/main.c	2006/11/28 20:52:39	1.18.2.6
+++ cluster/group/gfs_controld/main.c	2006/12/01 15:29:05	1.18.2.7
@@ -197,13 +197,13 @@
 
 static int dump_debug(int ci)
 {
-	int len;
+	int len = DUMP_SIZE;
 
 	if (dump_wrap) {
 		len = DUMP_SIZE - dump_point;
 		do_write(client[ci].fd, dump_buf + dump_point, len);
+		len = dump_point;
 	}
-	len = dump_point;
 
 	do_write(client[ci].fd, dump_buf, len);
 	return 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]