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

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



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	rpeterso sourceware org	2006-11-22 18:39:39

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&r1=1.5&r2=1.6

--- cluster/gfs2/libgfs2/structures.c	2006/06/14 13:55:11	1.5
+++ cluster/gfs2/libgfs2/structures.c	2006/11/22 18:39:38	1.6
@@ -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));


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