From owner-freebsd-current Sat Aug 21 0:13:48 1999 Delivered-To: freebsd-current@freebsd.org Received: from cimlogic.com.au (cimlog.lnk.telstra.net [139.130.51.31]) by hub.freebsd.org (Postfix) with ESMTP id 373A215A89 for ; Sat, 21 Aug 1999 00:13:39 -0700 (PDT) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.9.3/8.9.1) id QAA02017; Sat, 21 Aug 1999 16:47:46 +1000 (EST) (envelope-from jb) Date: Sat, 21 Aug 1999 16:47:46 +1000 From: John Birrell To: Bruce Evans Cc: jb@cimlogic.com.au, phk@critter.freebsd.dk, atrens@nortelnetworks.com, current@FreeBSD.ORG, luigi@labinfo.iet.unipi.it Subject: Re: problem with vnconfig -s labels ... Message-ID: <19990821164745.C281@freebsd1.cimlogic.com.au> References: <199908210630.QAA05678@godzilla.zeta.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: <199908210630.QAA05678@godzilla.zeta.org.au>; from Bruce Evans on Sat, Aug 21, 1999 at 04:30:57PM +1000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Aug 21, 1999 at 04:30:57PM +1000, Bruce Evans wrote: > >Hmmm, I know this is your code, but are you sure? 8-). My understanding of > >dkmodslice() and friends is that they manipulate dev_t entries, but don't > >actually initialise them. Since the subr_diskslice code takes a dev_t > > dkmodslice() once just manipulated bits in dev_t scalars. Now that dev_t > is a pointer, dkmodslice() has to create something for the pointer to > point to. That something needs to be fully initialised and not created > more than once. The initialisation is apparently incomplete. Multiple > creation is avoided by searching the list of previously created entries. I agree that something has to create something for the dev_t pointer to point to, but I thought that it would be the device code that would do that. I've only looked at this from the perspective of vn, since that is what is biting me 8-). -- John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/ CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message