From owner-freebsd-bugs Wed Oct 30 4:20: 8 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48CB437B404 for ; Wed, 30 Oct 2002 04:20:06 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00C3843E42 for ; Wed, 30 Oct 2002 04:20:06 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9UCK5x3093691 for ; Wed, 30 Oct 2002 04:20:05 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9UCK5BV093690; Wed, 30 Oct 2002 04:20:05 -0800 (PST) Date: Wed, 30 Oct 2002 04:20:05 -0800 (PST) Message-Id: <200210301220.g9UCK5BV093690@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: kern/44744: VN devices can hang system FreeBSD v4.5 Reply-To: Peter Pentchev 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/44744; it has been noted by GNATS. From: Peter Pentchev To: "Łukasz Gryglicki" Cc: bug-followup@FreeBSD.org Subject: Re: kern/44744: VN devices can hang system FreeBSD v4.5 Date: Wed, 30 Oct 2002 14:17:40 +0200 On Wed, Oct 30, 2002 at 02:30:35AM -0800, Łukasz Gryglicki wrote: > > >Number: 44744 > >Category: kern > >Synopsis: VN devices can hang system FreeBSD v4.5 > >Originator: Łukasz Gryglicki > >Release: 4.5 > >Organization: > student > >Environment: > FreeBSD v4.5 /usr/src/sys/compile/MORGOTH i386 192MB RAM > >Description: > When I mount file (vn0 points to file) into /directory and then before > unmounting /directory do vnconfig -u vn0 there will be no error but > when I create in this diretory files (device is not configured now) > there wouldn't be error event now, but when I umount /directory kernel > hungs up (sometimes). I know I shouldn't do that but I think system > should prevent me from doing that... > >How-To-Repeat: > Just try to do what I've described in Full Description > >Fix: > Hmmm... I think this is kernel's fault (maybe fix vn management in kernel?) For the record, this - or a very similar - problem is still present in 4.7-STABLE. When a vn device is mounted, there is nothing to stop anyone from running 'vnconfig -u' - the device is happily torn down, and any further access to the still-mounted filesystem returns ENXIO, as it well should. Would there be a way to detect that a filesystem is mounted on the device and stop the 'un-configuring' process? G'luck, Peter -- Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 This sentence every third, but it still comprehensible. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message