Skip to contentSkip to conversation

cluster/gfs2/libgfs2 structures.c

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

lore
Share & tools
lore
#0 lore raw

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

gfs2/libgfs2/structures.c +2 -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));