In article <[EMAIL PROTECTED]>
Poul-Henning Kamp <[EMAIL PROTECTED]> writes:

> phk         2002/10/05 08:49:39 PDT
> 
>   Modified files:
>     sys/pc98/pc98        wd.c wd_cd.c 
>   Log:
>   Don't use dkunit() to find our softc when we can hang it off the dev_t.
>   This removes yet a dependency on the old disklabel stuff.

After this commit, the wd driver causes panic at wdsleep() via
wdopen(). Please fix this problem or back out your change.

And then, pc98 machines can not mount root filesystem yet.
Kawanobe Koh <[EMAIL PROTECTED]> sent me the patch to fix this
problem, please commit it.

---
TAKAHASHI Yoshihiro <[EMAIL PROTECTED]>
*** sys/kern/subr_disk.c.org    Sat Sep 21 03:30:43 2002
--- sys/kern/subr_disk.c        Sun Oct  6 01:55:47 2002
***************
*** 311,316 ****
--- 311,318 ----
                error = dp->d_devsw->d_open(pdev, oflags, devtype, td);
                dp->d_label->d_secsize = dp->d_sectorsize;
                dp->d_label->d_secperunit = dp->d_mediasize / dp->d_sectorsize;
+               dp->d_label->d_nsectors = dp->d_fwsectors;
+               dp->d_label->d_ntracks = dp->d_fwheads;
        }
  
        /* Inherit properties from the whole/raw dev_t */

Reply via email to