summaryrefslogtreecommitdiffstats
path: root/sbin/newfs/newfs.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-04-07 14:57:57 +0000
committerphk <phk@FreeBSD.org>2002-04-07 14:57:57 +0000
commit385d4388dcfcfda839a506548952f773a6e3ff14 (patch)
tree0af4bc53ca94bfb3ebbfe45c3f75e074e221099e /sbin/newfs/newfs.c
parent82d02ca76b760d9128480d2b87dfefe984a81e2c (diff)
downloadFreeBSD-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.c6
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 */
OpenPOWER on IntegriCloud