From owner-cvs-all Sat May 11 14:30:54 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id AFCF137B404; Sat, 11 May 2002 14:30:46 -0700 (PDT) Received: (from jake@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4BLUkj46221; Sat, 11 May 2002 14:30:46 -0700 (PDT) (envelope-from jake) Message-Id: <200205112130.g4BLUkj46221@freefall.freebsd.org> From: Jake Burkholder Date: Sat, 11 May 2002 14:30:46 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/boot/ofw/libofw devicename.c libofw.h ofw_disk.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jake 2002/05/11 14:30:46 PDT Modified files: sys/boot/ofw/libofw devicename.c libofw.h ofw_disk.c Log: Change the disk probing so that it will actually find disks other than the first one on a controller, and work for secondary controllers. Due to the prom not having nodes for each disk, but a catch-all one, we have to iterate over each device, trying to open it to determine whether it is actually present. Since probing this way takese some time (and spews some spurious warnings), it should maybe be short-circuited if we use the device we were booted from. Implement lazy device probing, and correct slice/partiniton handling in the ofwd_open() code. With this, I can now actually boot a kernel from disk, and the loader does not create unnecessary delays. Submitted by: tmm Revision Changes Path 1.10 +12 -6 src/sys/boot/ofw/libofw/devicename.c 1.6 +1 -1 src/sys/boot/ofw/libofw/libofw.h 1.6 +123 -35 src/sys/boot/ofw/libofw/ofw_disk.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message