summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2009-04-26 20:25:09 +0000
committerderaadt <deraadt@openbsd.org>2009-04-26 20:25:09 +0000
commit92adb55f9f2cecf8ecda51390ed844e2cc294818 (patch)
tree4997d3f75265997c5529f8ef6bafd1b5eec5f21d
parentAdjust the medium auto scale after looking at how it performs between the (diff)
downloadwireguard-openbsd-92adb55f9f2cecf8ecda51390ed844e2cc294818.tar.xz
wireguard-openbsd-92adb55f9f2cecf8ecda51390ed844e2cc294818.zip
adjust the numbers for the "big" auto-allocation scheme with otto
-rw-r--r--sbin/disklabel/editor.c31
1 files changed, 16 insertions, 15 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c
index aeaf321c180..1cc6ffa7a89 100644
--- a/sbin/disklabel/editor.c
+++ b/sbin/disklabel/editor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: editor.c,v 1.197 2009/04/26 20:05:30 deraadt Exp $ */
+/* $OpenBSD: editor.c,v 1.198 2009/04/26 20:25:09 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.197 2009/04/26 20:05:30 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: editor.c,v 1.198 2009/04/26 20:25:09 deraadt Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -72,30 +72,31 @@ struct space_allocation {
};
#define MEG(x) ((x) * 1024LL * (1024 / 512))
+#define GIG(x) (MEG(x) * 1024LL)
/* entries for swap and var are changed by editor_allocspace() */
const struct space_allocation alloc_big[] = {
- { MEG(80), MEG(1024), 5, "/" },
+ { MEG(80), GIG(1), 5, "/" },
{ MEG(80), MEG(256), 5, "swap" },
- { MEG(80), MEG(4096), 10, "/tmp" },
- { MEG(80), MEG(4096), 10, "/var" },
- { MEG(1024), MEG(4096), 20, "/usr" },
- { MEG(512), MEG(1024), 5, "/usr/X11R6" },
- { MEG(2048), MEG(6*1024), 5, "/usr/local" },
- { MEG(1024), MEG(2048), 5, "/usr/src" },
- { MEG(1200), MEG(2048), 5, "/usr/obj" },
- { MEG(512), MEG(1024*1024), 30, "/home" }
+ { MEG(80), GIG(4), 12, "/tmp" },
+ { MEG(80), GIG(4), 13, "/var" },
+ { MEG(600), GIG(2), 2, "/usr" },
+ { MEG(512), GIG(1), 3, "/usr/X11R6" },
+ { GIG(2), GIG(6), 5, "/usr/local" },
+ { GIG(1), GIG(2), 3, "/usr/src" },
+ { GIG(1), GIG(2), 3, "/usr/obj" },
+ { GIG(1), GIG(300), 49, "/home" }
};
const struct space_allocation alloc_medium[] = {
- { MEG(800), MEG(2048), 15, "/" },
+ { MEG(800), GIG(2), 15, "/" },
{ MEG(80), MEG(256), 10, "swap" },
- { MEG(900), MEG(1024*1024), 10, "/usr" },
- { MEG(512), MEG(1024*1024), 65, "/home" }
+ { MEG(900), GIG(1), 10, "/usr" },
+ { MEG(512), GIG(1), 65, "/home" }
};
const struct space_allocation alloc_small[] = {
- { MEG(700), MEG(4096), 95, "/" },
+ { MEG(700), GIG(4), 95, "/" },
{ MEG(1), MEG(256), 5, "swap" }
};