Skip to contentSkip to conversation

cluster/group/gfs_controld main.c

Cluster-devel [email protected] 1 participant 1 message Dec 1, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: teigland at 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

group/gfs_controld/main.c +2 -2
@@ -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;