In message <[EMAIL PROTECTED]>, 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
[EMAIL PROTECTED]               "Real hackers run -current on their laptop."
FreeBSD -- It will take a long time before progress goes too far!


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to