Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Oct 2002 22:46:40 +0900 (JST)
From:      Takahashi Yoshihiro <nyan@jp.FreeBSD.org>
To:        phk@FreeBSD.org
Cc:        current@FreeBSD.org
Subject:   GEOM (Re: cvs commit: src/sys/pc98/pc98 wd.c wd_cd.c)
Message-ID:  <20021014.224640.78758544.nyan@jp.FreeBSD.org>
In-Reply-To: <200210051549.g95Fnedr013921@freefall.freebsd.org>
References:  <200210051549.g95Fnedr013921@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
In article <200210051549.g95Fnedr013921@freefall.freebsd.org>
Poul-Henning Kamp <phk@FreeBSD.org> 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 <kawanobe@st.rim.or.jp> sent me the patch to fix this
problem, please commit it.

---
TAKAHASHI Yoshihiro <nyan@FreeBSD.org>

[-- Attachment #2 --]
*** 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 */

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