From owner-freebsd-bugs Thu Jan 21 16:40:04 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA26713 for freebsd-bugs-outgoing; Thu, 21 Jan 1999 16:40:04 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA26645 for ; Thu, 21 Jan 1999 16:40:00 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id QAA08452; Thu, 21 Jan 1999 16:40:01 -0800 (PST) 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 ; 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 ; 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 Reply-To: grog@lemis.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/9611: MFS calculates the size incorrectly when more than one swap partition is present Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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