From cagney@tpgi.com.au  Sat Nov 22 05:57:00 1997
Received: from random.tpgi.com.au (random.tpgi.com.au [203.12.160.7])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA06718
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 22 Nov 1997 05:56:58 -0800 (PST)
          (envelope-from cagney@tpgi.com.au)
Received: (from smtpd@localhost)
	by random.tpgi.com.au (8.8.4/8.8.6) id AAA13705
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 23 Nov 1997 00:56:55 +1100 (EST)
Received: from oberon.tpgi.com.au(203.12.160.2), claiming to be "oberon.com.au"
 via SMTP by random.tpgi.com.au, id smtpdAAAa003M3; Sun Nov 23 00:56:49 1997
Received: from b1.tpgi.com.au by oberon.com.au (SMI-8.6/SMI-SVR4)
	id AAA07091; Sun, 23 Nov 1997 00:56:42 +1100
Received: (from cagney@localhost) by b1.tpgi.com.au (8.8.7/8.7.3) id AAA27390; Sun, 23 Nov 1997 00:57:14 +1100 (EST)
Message-Id: <199711221357.AAA27390@b1.tpgi.com.au>
Date: Sun, 23 Nov 1997 00:57:14 +1100 (EST)
From: Andrew Cagney <cagney@tpgi.com.au>
Reply-To: cagney@tpgi.com.au
To: FreeBSD-gnats-submit@freebsd.org
Subject: Can't mount mfs file system larger than 38mb from fstab
X-Send-Pr-Version: 3.2

>Number:         5127
>Category:       conf
>Synopsis:       Can't mount mfs file system larger than 38mb from fstab
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 22 06:00:00 PST 1997
>Closed-Date:    Sat Nov 22 14:46:52 PST 1997
>Last-Modified:  Sat Nov 22 14:48:20 PST 1997
>Originator:     Andrew Cagney
>Release:        FreeBSD 2.2.5-RELEASE i386
>Organization:
>Environment:

	Almost vanila 2.2.5 - Kernel configured with:

	options		CHILD_MAX=128
	options		OPEN_MAX=128
	options		"MAXDSIZ=(256*1024*1024)"
	options		"DFLDSIZ=(256*1024*1024)"

	A 500mb swap partition.

>Description:

Given the /etc/fstab entries:

/dev/wd1b                     	/tmp            mfs     rw 0 0
/dev/wd1b                     	/mnt            mfs     rw,noauto 0 0

then, afer booting, mounting /mnt gives a very large (256mb) MFS /mnt.
However /tmp's file system (mounted during boot) is only 38MB.
Remounting the file system sorts out the problem (assming nothing is
using /tmp :-)

>How-To-Repeat:

	Reboot the system with the above kernel and FSTAB changes.
	Make /dev/wd1b >= 256mb.
	
>Fix:
	
Add/edit the lines below to /etc/rc after the edited line:

mount -a -t nonfs,mfs
if [ $? != 0 ]; then
	echo "Filesystem mount failed, startup aborted"
	exit 1
fi

# Add mfs file systems now that all the swap is available
( ulimit -d unlimited && mount -a -t mfs )
if [ $? != 0 ]; then
	echo "Memory Filesystem mount failed, startup aborted"
	exit 1
fi

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jmg 
State-Changed-When: Sat Nov 22 14:46:52 PST 1997 
State-Changed-Why:  
modifing daemon resource limits in /etc/login.conf is a better way to 
handle this... 
>Unformatted:
