Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jan 1999 11:07:42 +1030 (CST)
From:      Greg Lehey <grog@lemis.com>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   kern/9611: MFS calculates the size incorrectly when more than one swap partition is present
Message-ID:  <199901220037.LAA03493@freebie.lemis.com>

next in thread | raw e-mail | index | archive | help

>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:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 21 16:40:00 PST 1999
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901220037.LAA03493>