diff options
author | mckusick <mckusick@FreeBSD.org> | 2002-06-22 22:44:09 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2002-06-22 22:44:09 +0000 |
commit | 9180c9b8da975d163fdd9bbd742c646c3a52c153 (patch) | |
tree | 7153719de07962bc955c722f6415c609ea65ae11 /sbin/newfs | |
parent | 42aadc6a1f154f8803cfaae698ea615b166dce89 (diff) | |
download | FreeBSD-src-9180c9b8da975d163fdd9bbd742c646c3a52c153.zip FreeBSD-src-9180c9b8da975d163fdd9bbd742c646c3a52c153.tar.gz |
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.
Diffstat (limited to 'sbin/newfs')
-rw-r--r-- | sbin/newfs/mkfs.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c index 03c76f6..98ae34a 100644 --- a/sbin/newfs/mkfs.c +++ b/sbin/newfs/mkfs.c @@ -460,13 +460,6 @@ mkfs(struct partition *pp, char *fsys) 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. */ |