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