diff options
author | 2009-04-26 20:05:30 +0000 | |
---|---|---|
committer | 2009-04-26 20:05:30 +0000 | |
commit | f944831c02f32e45708426856383f5870576514a (patch) | |
tree | d33f33c428e0ec9b48f0d3b0189219bcb0cf5ab0 /sbin/disklabel/editor.c | |
parent | sync with changes in relayd, diff by reyk@ and okayd by me (diff) | |
download | wireguard-openbsd-f944831c02f32e45708426856383f5870576514a.tar.xz wireguard-openbsd-f944831c02f32e45708426856383f5870576514a.zip |
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/disklabel/editor.c')
-rw-r--r-- | sbin/disklabel/editor.c | 16 |
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[] = { |