Date: Wed, 30 Oct 2002 04:20:05 -0800 (PST) From: Peter Pentchev <roam@ringlet.net> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/44744: VN devices can hang system FreeBSD v4.5 Message-ID: <200210301220.g9UCK5BV093690@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/44744; it has been noted by GNATS. From: Peter Pentchev <roam@ringlet.net> To: "Łukasz Gryglicki" <morgothdbma@o2.pl> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210301220.g9UCK5BV093690>