diff options
author | phk <phk@FreeBSD.org> | 2002-04-07 14:57:57 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-04-07 14:57:57 +0000 |
commit | 385d4388dcfcfda839a506548952f773a6e3ff14 (patch) | |
tree | 0af4bc53ca94bfb3ebbfe45c3f75e074e221099e /sbin/newfs/newfs.c | |
parent | 82d02ca76b760d9128480d2b87dfefe984a81e2c (diff) | |
download | FreeBSD-src-385d4388dcfcfda839a506548952f773a6e3ff14.zip FreeBSD-src-385d4388dcfcfda839a506548952f773a6e3ff14.tar.gz |
bbsize and sbsize cannot ever be trusted from the disklabel, in
particular as there may not be one. Remove #if 0'ed code which might
mislead people to think otherwise.
unifdef -ULOSTDIR, fsck can make lost+found on the fly.
Sponsored by: DARPA & NAI Labs
Diffstat (limited to 'sbin/newfs/newfs.c')
-rw-r--r-- | sbin/newfs/newfs.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c index 1c3f223..e70c7c3 100644 --- a/sbin/newfs/newfs.c +++ b/sbin/newfs/newfs.c @@ -134,8 +134,6 @@ int maxcontig = 0; /* max contiguous blocks to allocate */ int maxbpg; /* maximum blocks per file in a cyl group */ int avgfilesize = AVFILESIZ;/* expected average file size */ int avgfilesperdir = AFPDIR;/* expected number of files per directory */ -int bbsize = BBSIZE; /* boot block size */ -int sbsize = SBSIZE; /* superblock size */ static char device[MAXPATHLEN]; static char *disktype; @@ -372,10 +370,6 @@ main(int argc, char *argv[]) "disagrees with disk label", (u_long)lp->d_secpercyl); if (maxbpg == 0) maxbpg = MAXBLKPG(bsize); -#ifdef notdef /* label may be 0 if faked up by kernel */ - bbsize = lp->d_bbsize; - sbsize = lp->d_sbsize; -#endif oldpartition = *pp; realsectorsize = sectorsize; if (sectorsize != DEV_BSIZE) { /* XXX */ |