From owner-freebsd-hackers Thu Feb 3 7:21:32 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from eeyore.local.dohd.cx (d0030.dtk.chello.nl [213.46.0.30]) by builder.freebsd.org (Postfix) with ESMTP id C54943E7C for ; Thu, 3 Feb 2000 07:21:29 -0800 (PST) Received: by eeyore.local.dohd.cx (Postfix, from userid 1008) id 82EF1BAAD; Thu, 3 Feb 2000 16:21:31 +0100 (MET) Date: Thu, 3 Feb 2000 16:21:31 +0100 From: Mark Huizer To: freebsd-hackers@freebsd.org Subject: Re: open ref counts in CAM and vn Message-ID: <20000203162131.A22805@eeyore.local.dohd.cx> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20000203102615.A64986@gvr.gvr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre1i In-Reply-To: <20000203102615.A64986@gvr.gvr.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Feb 03, 2000 at 10:26:15AM +0100, Guido van Rooij wrote: > A collegue fo mine had the problem that it was possible to > vnconfig -u a vn device that was currently in use. This strikes > me as odd. When trying to add some refcounting in sys/dev/vn.c, I wanted to switch to using the kernel module for vn, which brought another problem forward, tried to send-pr it, but unfortunately that doesn't work with hub being replaced temporarily.Anyway: on a current machine: dd if=/dev/zero of=/tmp/vntest bs=1024 count=1440 kldload vn vnconfig -c vn0 /tmp/vntest vnconfig -u vn0 kldunload -i SOMENUMBER (found with kldstat) kldload vn vnconfig -c vn0 /tmp/vntest crash, kernelpanic,kabang, kaputt :-( We tried to trace this back somewhere but failed. Mark -- Nice testing in little China... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message