Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/utils/sysinst/arch/x68k swapon when the system memor...



details:   https://anonhg.NetBSD.org/src/rev/842733cb7e5a
branches:  trunk
changeset: 498458:842733cb7e5a
user:      minoura <minoura%NetBSD.org@localhost>
date:      Wed Oct 25 14:48:35 2000 +0000

description:
swapon when the system memory is smaller than 6MB.

diffstat:

 distrib/utils/sysinst/arch/x68k/md.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r f480607c0b6f -r 842733cb7e5a distrib/utils/sysinst/arch/x68k/md.c
--- a/distrib/utils/sysinst/arch/x68k/md.c      Wed Oct 25 13:00:59 2000 +0000
+++ b/distrib/utils/sysinst/arch/x68k/md.c      Wed Oct 25 14:48:35 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.10 2000/10/11 23:48:01 fvdl Exp $ */
+/*     $NetBSD: md.c,v 1.11 2000/10/25 14:48:35 minoura Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -224,6 +224,9 @@
 int
 md_post_disklabel(void)
 {
+       if (rammb < 6)
+               set_swap(diskdev, bsdlabel, 1);
+
        return 0;
 }
 
@@ -314,7 +317,7 @@
 void
 md_cleanup_install(void)
 {
-#if notyet                     /* sed is too large for ramdisk */
+#ifdef notyet                  /* sed is too large for ramdisk */
        char realfrom[STRSIZE];
        char realto[STRSIZE];
        char sedcmd[STRSIZE];
@@ -340,6 +343,8 @@
 int
 md_pre_update()
 {
+       if (rammb < 6)
+               set_swap(diskdev, NULL, 1);
        return 1;
 }
 



Home | Main Index | Thread Index | Old Index