From owner-freebsd-bugs Sun Mar 17 2:10:24 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C94BA37B41D for ; Sun, 17 Mar 2002 02:10:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2HAA2q03299; Sun, 17 Mar 2002 02:10:02 -0800 (PST) (envelope-from gnats) Date: Sun, 17 Mar 2002 02:10:02 -0800 (PST) Message-Id: <200203171010.g2HAA2q03299@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Crist J. Clark" Subject: Re: kern/35985: swap double mount Reply-To: "Crist J. Clark" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR kern/35985; it has been noted by GNATS. From: "Crist J. Clark" To: Jan Srzednicki Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: kern/35985: swap double mount Date: Sun, 17 Mar 2002 02:03:13 -0800 On Sat, Mar 16, 2002 at 08:53:35PM -0000, Jan Srzednicki wrote: [snip] > [21:46] spitfire:~(60)# swapinfo > Device 1K-blocks Used Avail Capacity Type > /dev/ad0s1b 153472 5036 148436 3% Interleaved > /dev/rad6s1b 204672 4968 199704 2% Interleaved > /dev/rad4s1b 348032 4972 343060 1% Interleaved > /dev/rad4s1b 348032 1580 346452 0% Interleaved > Total 1054208 16556 1037652 2% > > Aaargh! /dev/rad4s1b is mounted as swap twice! > I thing the system should never allow this to happen. It isn't supposed to. swapon(2) (the system call, not the command) should return EBUSY when a device is in use. Can you give more detailed information about how the system got into this state? -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message