summaryrefslogtreecommitdiffstats
path: root/sbin/newfs
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-09-08 13:52:55 +0000
committerdg <dg@FreeBSD.org>1995-09-08 13:52:55 +0000
commite7bafd34db326e22fb4f3c3167f4363c9b9cb52a (patch)
treea5ba794d7ac1434fd30bf7fa54f3980a8ded5e8a /sbin/newfs
parent3ecdc71d41fece27fac90190db49edaf3977eb35 (diff)
downloadFreeBSD-src-e7bafd34db326e22fb4f3c3167f4363c9b9cb52a.zip
FreeBSD-src-e7bafd34db326e22fb4f3c3167f4363c9b9cb52a.tar.gz
Fixed error in maxcontig calculation that caused it to default to "1".
Diffstat (limited to 'sbin/newfs')
-rw-r--r--sbin/newfs/newfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c
index 3714e95..ed74706 100644
--- a/sbin/newfs/newfs.c
+++ b/sbin/newfs/newfs.c
@@ -474,7 +474,7 @@ main(argc, argv)
* transfer size permitted by the controller or buffering.
*/
if (maxcontig == 0)
- maxcontig = MAX(1, MIN(MAXPHYS, MAXBSIZE) / bsize - 1);
+ maxcontig = MAX(1, MAXPHYS / bsize - 1);
if (density == 0)
density = NFPI * fsize;
if (minfree < MINFREE && opt != FS_OPTSPACE) {
OpenPOWER on IntegriCloud