summaryrefslogtreecommitdiff
path: root/sbin/newfs
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-07-25 15:30:37 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-07-25 15:30:37 +0000
commit7f998a48b78fe577bfb04bf67247d7461b3421c5 (patch)
treee8f960638e5ded288442821bbf2d92f0cfb39a3e /sbin/newfs
parent27ba747e5b8915d7baaae7e2d08c12dc59a6c350 (diff)
Revert change to density calculation. David Vasek points out this
is a more complicated problem than it appears. ok deraadt@
Diffstat (limited to 'sbin/newfs')
-rw-r--r--sbin/newfs/newfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c
index 69f480d320b..21145752b9a 100644
--- a/sbin/newfs/newfs.c
+++ b/sbin/newfs/newfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: newfs.c,v 1.107 2016/07/23 09:12:33 krw Exp $ */
+/* $OpenBSD: newfs.c,v 1.108 2016/07/25 15:30:36 krw Exp $ */
/* $NetBSD: newfs.c,v 1.20 1996/05/16 07:13:03 thorpej Exp $ */
/*
@@ -482,7 +482,7 @@ havelabel:
bsize = MINIMUM(DFL_BLKSIZE, 8 * fsize);
}
if (density == 0)
- density = (NFPI * fsize) / (sectorsize / DEV_BSIZE);
+ density = NFPI * fsize;
if (minfree < MINFREE && opt != FS_OPTSPACE && reqopt == -1) {
warnx("warning: changing optimization to space "
"because minfree is less than %d%%\n", MINFREE);