summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-04-26 20:05:31 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-04-26 20:05:31 +0000
commit77520de30b672a218152eab8be47dc53dcfdba57 (patch)
tree2e7be6caa690523245483c26530c293cf3ebfa83 /sbin
parent6a7bd0eaf509df138ac3cfef61b8a7e643c7cbb5 (diff)
Adjust the medium auto scale after looking at how it performs between the
low and high ends of the disk sizes it applies to; with otto
Diffstat (limited to 'sbin')
-rw-r--r--sbin/disklabel/editor.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c
index e130440349a..aeaf321c180 100644
--- a/sbin/disklabel/editor.c
+++ b/sbin/disklabel/editor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: editor.c,v 1.196 2009/04/26 19:49:50 otto Exp $ */
+/* $OpenBSD: editor.c,v 1.197 2009/04/26 20:05:30 deraadt Exp $ */
/*
* Copyright (c) 1997-2000 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -17,7 +17,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: editor.c,v 1.196 2009/04/26 19:49:50 otto Exp $";
+static char rcsid[] = "$OpenBSD: editor.c,v 1.197 2009/04/26 20:05:30 deraadt Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -88,19 +88,19 @@ const struct space_allocation alloc_big[] = {
};
const struct space_allocation alloc_medium[] = {
- { MEG(1024), MEG(2048), 25, "/" },
+ { MEG(800), MEG(2048), 15, "/" },
{ MEG(80), MEG(256), 10, "swap" },
- { MEG(1024), MEG(1024*1024), 25, "/usr" },
- { MEG(512), MEG(1024*1024), 40, "/home" }
+ { MEG(900), MEG(1024*1024), 10, "/usr" },
+ { MEG(512), MEG(1024*1024), 65, "/home" }
};
const struct space_allocation alloc_small[] = {
- { MEG(700), MEG(4096), 95, "/" },
- { MEG(1), MEG(256), 5, "swap" }
+ { MEG(700), MEG(4096), 95, "/" },
+ { MEG(1), MEG(256), 5, "swap" }
};
const struct space_allocation alloc_stupid[] = {
- { MEG(1), MEG(2048), 100, "/" }
+ { MEG(1), MEG(2048), 100, "/" }
};
const struct { const struct space_allocation *table; int sz; } alloc_table[] = {