[Cluster-devel] cluster/gfs2/libgfs2 structures.c

rpeterso at sourceware.org rpeterso at sourceware.org
Wed Nov 22 18:42:53 UTC 2006


CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL50
Changes by:	rpeterso at sourceware.org	2006-11-22 18:42:51

Modified files:
	gfs2/libgfs2   : structures.c 

Log message:
	Resolves: bz216898
	mkfs.gfs2 needs to zero the first 16 blocks of file system

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/libgfs2/structures.c.diff?cvsroot=cluster&only_with_tag=RHEL50&r1=1.5&r2=1.5.4.1

--- cluster/gfs2/libgfs2/structures.c	2006/06/14 13:55:11	1.5
+++ cluster/gfs2/libgfs2/structures.c	2006/11/22 18:42:51	1.5.4.1
@@ -55,8 +55,9 @@
 	/* Zero out the beginning of the device up to the superblock */
 	for (x = 0; x < sdp->sb_addr; x++) {
 		bh = bget(sdp, x);
+		memset(bh->b_data, 0, GFS2_DEFAULT_BSIZE);
 		bh->b_uninit = TRUE;
-		brelse(bh, not_updated);
+		brelse(bh, updated);
 	}
 
 	memset(&sb, 0, sizeof(struct gfs2_sb));




More information about the Cluster-devel mailing list