summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-05-06 19:25:07 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-05-06 19:25:07 +0000
commit8be4a057fdc9747f376ee5cad660edcefd0d365a (patch)
tree38206622163cabcdd78b3a2fb11334e5be48ff23
parentc24b35b2984cac3d8628b12fd63a954bdbada292 (diff)
Use the default calculation of maxcontig, based on fs_bsize and MAXPHYS, so
that the cluster summary information is correct for bsize=4k and MAXPHYS=64k. From NetBSD (mycroft)
-rw-r--r--sbin/newfs/newfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c
index 4751e98786a..3ccea89e879 100644
--- a/sbin/newfs/newfs.c
+++ b/sbin/newfs/newfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: newfs.c,v 1.33 2002/04/23 18:54:12 espie Exp $ */
+/* $OpenBSD: newfs.c,v 1.34 2002/05/06 19:25:06 millert Exp $ */
/* $NetBSD: newfs.c,v 1.20 1996/05/16 07:13:03 thorpej Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)newfs.c 8.8 (Berkeley) 4/18/94";
#else
-static char rcsid[] = "$OpenBSD: newfs.c,v 1.33 2002/04/23 18:54:12 espie Exp $";
+static char rcsid[] = "$OpenBSD: newfs.c,v 1.34 2002/05/06 19:25:06 millert Exp $";
#endif
#endif /* not lint */
@@ -167,7 +167,7 @@ int minfree = MINFREE; /* free space threshold */
int opt = DEFAULTOPT; /* optimization preference (space or time) */
int reqopt = -1; /* opt preference has not been specified */
int density; /* number of bytes per inode */
-int maxcontig = 8; /* max contiguous blocks to allocate */
+int maxcontig = 0; /* max contiguous blocks to allocate */
int rotdelay = ROTDELAY; /* rotational delay between blocks */
int maxbpg; /* maximum blocks per file in a cyl group */
int nrpos = NRPOS; /* # of distinguished rotational positions */