Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Aug 1999 07:30:46 +0200
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        John Birrell <jb@cimlogic.com.au>
Cc:        Luigi Rizzo <luigi@labinfo.iet.unipi.it>, Andrew Atrens <atrens@nortelnetworks.com>, current@FreeBSD.ORG
Subject:   Re: problem with vnconfig -s labels ... 
Message-ID:  <11056.935213446@critter.freebsd.dk>
In-Reply-To: Your message of "Sat, 21 Aug 1999 15:11:41 %2B1000." <19990821151141.A281@freebsd1.cimlogic.com.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <19990821151141.A281@freebsd1.cimlogic.com.au>, John Birrell writes:

>The problem is that disklabel executes code in subr_diskslice.c which
>does:
>
>dev1 = dkmodslice(dkmodpart(dev, RAW_PART), slice);
>
>The 'dev' structure has s_drv1 set correctly, but the 'dev1' entry
>has s_drv1 NULL. When vnstrategy() is called using dev1,
>vn = bp->b_dev->s_drv1 is NULL when it shouldn't be. The first time
>vn is referenced... fall down go boom.

Bingo, thats it.

>but I'm still looking for the place
>where the dev1 entry is supposed to be initialised.

In dkmodslice() (and friends).

--
Poul-Henning Kamp             FreeBSD coreteam member
phk@FreeBSD.ORG               "Real hackers run -current on their laptop."
FreeBSD -- It will take a long time before progress goes too far!


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?11056.935213446>