Get rid of paranoia that zeros the boot block area as this has

bad effect on existing bootstraps.

Submitted by:	Jake Burkholder <jake@locore.ca>
Sponsored by:	DARPA & NAI Labs.
This commit is contained in:
Kirk McKusick 2002-06-22 22:44:09 +00:00
parent d5de6c2a5f
commit 5e5d87ff36
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98649

View File

@ -459,13 +459,6 @@ mkfs(struct partition *pp, char *fsys)
printf("\n");
if (Nflag)
exit(0);
/*
* Zero out the boot area to avoid old superblocks from being
* found by mistake. Skip over the disklabel area.
*/
bzero(iobuf, sblock.fs_bsize);
for (i = 1; i < sblock.fs_sblkno; i += sblock.fs_frag)
wtfs(fsbtodb(&sblock, i), sblock.fs_bsize, iobuf);
/*
* Now construct the initial filesystem,
* then write out the super-block.