Source-Changes-HG archive

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

[src/trunk]: src/distrib/utils/sysinst Don't take the size of an mfs /tmp off...



details:   https://anonhg.NetBSD.org/src/rev/3e51465c739b
branches:  trunk
changeset: 555530:3e51465c739b
user:      dsl <dsl%NetBSD.org@localhost>
date:      Thu Nov 20 09:47:53 2003 +0000

description:
Don't take the size of an mfs /tmp off the free disk space,
nor count a partition for it.
(Maybe the size of /tmp should be capped by that of swap.)

diffstat:

 distrib/utils/sysinst/bsddisklabel.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r db0359667565 -r 3e51465c739b distrib/utils/sysinst/bsddisklabel.c
--- a/distrib/utils/sysinst/bsddisklabel.c      Thu Nov 20 08:34:05 2003 +0000
+++ b/distrib/utils/sysinst/bsddisklabel.c      Thu Nov 20 09:47:53 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bsddisklabel.c,v 1.24 2003/10/19 20:17:31 dsl Exp $    */
+/*     $NetBSD: bsddisklabel.c,v 1.25 2003/11/20 09:47:53 dsl Exp $    */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -304,6 +304,10 @@
        }
 
        size = NUMSEC(size, mult, dlcylsize);
+       if (p->ptn_id == PART_TMP_MFS) {
+               p->size = size;
+               return 0;
+       }
        if (p == pi->pool_part)
                pi->pool_part = NULL;
        if (*cp == '+' && p->limit == 0) {



Home | Main Index | Thread Index | Old Index