diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2007-04-02 20:20:40 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2007-04-02 20:20:40 +0000 |
commit | ba7fcf757a5b9071071703809042c6c0a3648ee3 (patch) | |
tree | 4b1a71edc128f712d25155753093a0d8b120aba7 /sbin/newfs/mkfs.c | |
parent | 8698f83560263a8052aad378bbf8504be37aab3d (diff) |
Modern disks do bad sector replacement themselves. There is no
need to reserve space for them in the filesystem itself.
OK deraadt@ pedro@
Diffstat (limited to 'sbin/newfs/mkfs.c')
-rw-r--r-- | sbin/newfs/mkfs.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c index 045e00ae28a..d2e954395e5 100644 --- a/sbin/newfs/mkfs.c +++ b/sbin/newfs/mkfs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mkfs.c,v 1.51 2007/03/19 13:27:47 pedro Exp $ */ +/* $OpenBSD: mkfs.c,v 1.52 2007/04/02 20:20:39 millert Exp $ */ /* $NetBSD: mkfs.c,v 1.25 1995/06/18 21:35:38 cgd Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)mkfs.c 8.3 (Berkeley) 2/3/94"; #else -static char rcsid[] = "$OpenBSD: mkfs.c,v 1.51 2007/03/19 13:27:47 pedro Exp $"; +static char rcsid[] = "$OpenBSD: mkfs.c,v 1.52 2007/04/02 20:20:39 millert Exp $"; #endif #endif /* not lint */ @@ -95,7 +95,6 @@ extern int Oflag; /* format as an 4.3BSD file system */ extern int fssize; /* file system size */ extern int ntracks; /* # tracks/cylinder */ extern int nsectors; /* # sectors/track */ -extern int nphyssectors; /* # sectors/track including spares */ extern int secpercyl; /* sectors per cylinder */ extern int sectorsize; /* bytes/sector */ extern int rpm; /* revolutions/minute of drive */ @@ -507,7 +506,7 @@ recalc: */ sblock.fs_interleave = interleave; sblock.fs_trackskew = trackskew; - sblock.fs_npsect = nphyssectors; + sblock.fs_npsect = sblock.fs_nsect; sblock.fs_postblformat = FS_DYNAMICPOSTBLFMT; sblock.fs_sbsize = fragroundup(&sblock, sizeof(struct fs)); if (sblock.fs_sbsize > SBSIZE) |