From owner-freebsd-current@FreeBSD.ORG Thu Feb 24 20:35:54 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7BE3106566B for ; Thu, 24 Feb 2011 20:35:54 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from adsum.doit.wisc.edu (adsum.doit.wisc.edu [144.92.197.210]) by mx1.freebsd.org (Postfix) with ESMTP id B8D908FC0A for ; Thu, 24 Feb 2011 20:35:54 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from avs-daemon.smtpauth1.wiscmail.wisc.edu by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0LH500G102JT6200@smtpauth1.wiscmail.wisc.edu>; Thu, 24 Feb 2011 14:35:53 -0600 (CST) Received: from anacreon.physics.wisc.edu (anacreon.physics.wisc.edu [128.104.160.176]) by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0LH5008FC2JR8Q30@smtpauth1.wiscmail.wisc.edu>; Thu, 24 Feb 2011 14:35:51 -0600 (CST) Date: Thu, 24 Feb 2011 14:35:51 -0600 From: Nathan Whitehorn In-reply-to: <201102241514.19727.jhb@freebsd.org> To: John Baldwin Message-id: <4D66C127.6060701@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=128.104.160.176 X-Spam-PmxInfo: Server=avs-14, Version=5.6.0.2009776, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.2.24.202414, SenderIP=128.104.160.176 References: <4D64FF99.2070908@cabletv.dp.ua> <4D66729C.6040303@freebsd.org> <201102241514.19727.jhb@freebsd.org> User-Agent: Mozilla/5.0 (X11; U; FreeBSD powerpc; en-US; rv:1.9.2.13) Gecko/20110104 Thunderbird/3.1.7 Cc: freebsd-current@freebsd.org, Mitya Subject: Re: Cosmetic path to bsdinstall X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2011 20:35:55 -0000 On 02/24/11 14:14, John Baldwin wrote: > On Thursday, February 24, 2011 10:00:44 am Nathan Whitehorn wrote: >> Thanks! I've received basically this patch from a couple people now. I'm >> going to investigate whether this is a more generic way to get this >> information (so the list doesn't grow infinitely long), and will commit >> this if I can't. Having CAM devices be part of newbus would simplify >> this a very great deal... > Note that all these disk devices are not CAM devices, so CAM changing to > use new-bus wouldn't really matter one whit. They do all show up as 'DISK' > GEOM's however (I also hacked on a GEOM-based libdisk replacement at one > point, though probably less developed than Marcel's. I used libgeom to > discover DISK devices.) Given that disk_create() already hooks into GEOM, > that is probably the right way to discover disks in a generic fashion. Right, stepping through that is how I build the list. Adding a device description to the XML actually seems like a good idea (and maybe the drive serial number?). Would anyone have any objections to me starting to go through and do that? -Nathan