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:
parent
d5de6c2a5f
commit
5e5d87ff36
@ -459,13 +459,6 @@ mkfs(struct partition *pp, char *fsys)
|
|||||||
printf("\n");
|
printf("\n");
|
||||||
if (Nflag)
|
if (Nflag)
|
||||||
exit(0);
|
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,
|
* Now construct the initial filesystem,
|
||||||
* then write out the super-block.
|
* then write out the super-block.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user