From grog@freebie.lemis.com  Thu Jan 21 16:38:06 1999
Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA26532
          for <FreeBSD-gnats-submit@FreeBSD.org>; Thu, 21 Jan 1999 16:37:57 -0800 (PST)
          (envelope-from grog@freebie.lemis.com)
Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137])
	by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id LAA20179
	for <FreeBSD-gnats-submit@FreeBSD.org>; Fri, 22 Jan 1999 11:07:44 +1030 (CST)
Received: (from grog@localhost)
	by freebie.lemis.com (8.9.2/8.9.0) id LAA03493;
	Fri, 22 Jan 1999 11:07:42 +1030 (CST)
Message-Id: <199901220037.LAA03493@freebie.lemis.com>
Date: Fri, 22 Jan 1999 11:07:42 +1030 (CST)
From: Greg Lehey <grog@lemis.com>
Reply-To: grog@lemis.com
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: MFS calculates the size incorrectly when more than one swap partition is present
X-Send-Pr-Version: 3.2

>Number:         9611
>Category:       kern
>Synopsis:       MFS calculates the size incorrectly when more than one swap partition is present
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 21 16:40:00 PST 1999
>Closed-Date:    Tue May 29 11:20:52 PDT 2001
>Last-Modified:  Tue May 29 11:21:08 PDT 2001
>Originator:     Greg Lehey
>Release:        FreeBSD-4.0
>Organization:
FreeBSD
>Environment:

	Observed on 3.0-CURRENT and 4.0-CURRENT with more than one swap partition.

>Description:

	The ``file system'' parameter to mount_mfs specifies a swap
	partition to enable mount_mfs to calculate the file system
	size.  On a system with multiple swap partitions, it appears
	to ignore this parameter.  In this case, we have:

	In /etc/rc.local:
	   mount_mfs /dev/sd0b /tmp

	In /etc/fstab:
	   /dev/wd0s1b                     none            swap    sw 0 0
	   /dev/sd0b                       none            swap    sw 0 0

	After startup:
	   $ pstat -s
	   Device      1048576-blocks     Used    Avail Capacity  Type
	   /dev/wd0s1b             50        0       48     2%    Interleaved
	   /dev/sd0b              400        0      398     0%    Interleaved
	   Total                  449        1      447     0%
	   $ df /tmp
	   Filesystem  1048576-blocks     Used    Avail Capacity  Mounted on
	   mfs:281                 30        0       28     0%    /tmp

	If the file system is umounted and mounted again after
	startup, it calculates the size correctly.

>How-To-Repeat:

	As above

>Fix:
	
	Not investigated.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Tue May 29 11:20:52 PDT 2001 
State-Changed-Why:  
MFS is deprecated. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=9611 
>Unformatted:
