From owner-freebsd-current Fri Aug 20 23: 3: 1 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 146C01540F for ; Fri, 20 Aug 1999 23:02:56 -0700 (PDT) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.9.3/8.9.1) id QAA01819; Sat, 21 Aug 1999 16:04:05 +1000 (EST) (envelope-from jb) Date: Sat, 21 Aug 1999 16:04:04 +1000 From: John Birrell To: Poul-Henning Kamp Cc: John Birrell , Luigi Rizzo , Andrew Atrens , current@FreeBSD.ORG Subject: Re: problem with vnconfig -s labels ... Message-ID: <19990821160404.B281@freebsd1.cimlogic.com.au> References: <19990821151141.A281@freebsd1.cimlogic.com.au> <11056.935213446@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: <11056.935213446@critter.freebsd.dk>; from Poul-Henning Kamp on Sat, Aug 21, 1999 at 07:30:46AM +0200 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Aug 21, 1999 at 07:30:46AM +0200, Poul-Henning Kamp wrote: > >but I'm still looking for the place > >where the dev1 entry is supposed to be initialised. > > In dkmodslice() (and friends). 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 and goes off and accesses the raw partition entry, my guess is that vnopen() should check if the raw entry has been initialised, and if not do it, just like it does for the one you open. -- 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