summaryrefslogtreecommitdiff
path: root/sbin/disklabel
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2013-10-21 07:59:35 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2013-10-21 07:59:35 +0000
commitd33a674fe739601c0ef719f2bffd003a073e27b8 (patch)
treefc124c4c011522281fe2a4ebbb83a0e5f4866f6b /sbin/disklabel
parent7fa2f5541aeb97085e960e9c466d4bfc957d386a (diff)
improve on last commit: take 10% for swap, with a max of physmem plus a bit
Diffstat (limited to 'sbin/disklabel')
-rw-r--r--sbin/disklabel/editor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c
index 491a96a6944..daaa48b997e 100644
--- a/sbin/disklabel/editor.c
+++ b/sbin/disklabel/editor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: editor.c,v 1.275 2013/10/18 13:36:04 otto Exp $ */
+/* $OpenBSD: editor.c,v 1.276 2013/10/21 07:59:34 otto Exp $ */
/*
* Copyright (c) 1997-2000 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -71,7 +71,7 @@ struct space_allocation {
/* entries for swap and var are changed by editor_allocspace() */
const struct space_allocation alloc_big[] = {
{ MEG(80), GIG(1), 5, "/" },
- { MEG(80), GIG(16), 5, "swap" },
+ { MEG(80), MEG(256), 10, "swap" },
{ MEG(120), GIG(4), 8, "/tmp" },
{ MEG(80), GIG(4), 13, "/var" },
{ MEG(900), GIG(2), 5, "/usr" },
@@ -83,7 +83,7 @@ const struct space_allocation alloc_big[] = {
#else
{ MEG(1300), GIG(2), 4, "/usr/obj" },
#endif
- { GIG(1), GIG(300), 45, "/home" }
+ { GIG(1), GIG(300), 40, "/home" }
/* Anything beyond this leave for the user to decide */
};