From owner-freebsd-current Mon Oct 14 6:47:33 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 748C537B401; Mon, 14 Oct 2002 06:47:31 -0700 (PDT) Received: from watery.cc.kogakuin.ac.jp (watery.cc.kogakuin.ac.jp [133.80.152.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8288943EBE; Mon, 14 Oct 2002 06:47:30 -0700 (PDT) (envelope-from nyan@jp.FreeBSD.org) Received: from localhost (localhost [IPv6:::1]) by watery.cc.kogakuin.ac.jp (8.12.6/8.12.6) with ESMTP id g9EDlSnq040575; Mon, 14 Oct 2002 22:47:28 +0900 (JST) (envelope-from nyan@jp.FreeBSD.org) Date: Mon, 14 Oct 2002 22:46:40 +0900 (JST) Message-Id: <20021014.224640.78758544.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) From: Takahashi Yoshihiro In-Reply-To: <200210051549.g95Fnedr013921@freefall.freebsd.org> References: <200210051549.g95Fnedr013921@freefall.freebsd.org> X-Mailer: Mew version 2.2 on Emacs 21.2 / Mule 5.0 =?iso-2022-jp?B?KBskQjgtTFobKEIp?= Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Mon_Oct_14_22:46:40_2002_499)--" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----Next_Part(Mon_Oct_14_22:46:40_2002_499)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit In article <200210051549.g95Fnedr013921@freefall.freebsd.org> Poul-Henning Kamp 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 sent me the patch to fix this problem, please commit it. --- TAKAHASHI Yoshihiro ----Next_Part(Mon_Oct_14_22:46:40_2002_499)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="subr_disk.diff" *** 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 */ ----Next_Part(Mon_Oct_14_22:46:40_2002_499)---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message