diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2015-03-17 19:11:56 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2015-03-17 19:11:56 +0000 |
commit | c5e441df5c5de5c985fa199fa7995a4e383875b4 (patch) | |
tree | ca6e17369e93a34c1a057b97a60f3005044809d5 /sbin/disklabel/editor.c | |
parent | 9fb3cccf9da34933c780776389a569810c7f0ba5 (diff) |
for small mem machines, make sure max does not get smaller than
min, otherwise the constraint cannot be satisfied; ok deraadt@ okan@
Diffstat (limited to 'sbin/disklabel/editor.c')
-rw-r--r-- | sbin/disklabel/editor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c index 0ef37d5b7cd..abd494433f0 100644 --- a/sbin/disklabel/editor.c +++ b/sbin/disklabel/editor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: editor.c,v 1.291 2015/01/20 18:22:20 deraadt Exp $ */ +/* $OpenBSD: editor.c,v 1.292 2015/03/17 19:11:55 otto Exp $ */ /* * Copyright (c) 1997-2000 Todd C. Miller <Todd.Miller@courtesan.com> @@ -580,7 +580,7 @@ again: /* bump max swap based on phys mem, little physmem gets 2x swap */ if (index == 0) { if (physmem < MEG(256)) - alloc[1].maxsz = 2 * physmem; + alloc[1].minsz = alloc[1].maxsz = 2 * physmem; else alloc[1].maxsz += physmem; /* bump max /var to make room for 2 crash dumps */ |