From owner-cvs-all Sun Jan 6 9:37:17 2002 Delivered-To: cvs-all@freebsd.org Received: from mail11.speakeasy.net (mail11.speakeasy.net [216.254.0.211]) by hub.freebsd.org (Postfix) with ESMTP id 65D3437B404 for ; Sun, 6 Jan 2002 09:37:07 -0800 (PST) Received: (qmail 1579 invoked from network); 6 Jan 2002 17:37:06 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail11.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 6 Jan 2002 17:37:06 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200201050235.g052Zij03312@mass.dis.org> Date: Sun, 06 Jan 2002 09:36:54 -0800 (PST) From: John Baldwin To: Michael Smith Subject: Re: cvs commit: src/sys/boot/i386/libi386 bootinfo.c Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, Bruce Evans 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 On 05-Jan-02 Michael Smith wrote: >> > I thought that RB_CDROM was only set by the old bootblocks. Bootblocks >> > that are less than 2 years old should set vfs.root.mountfrom to >> > [:], and not shoot their foot off by setting deprecated >> > flags. >> >> Well, that's a bit tricky. In the loader, all I know is that the BIOS cd >> cd0 >> is >> _some_ CD device. I don't know which device. It could be cd4 or acd0 to >> the >> kernel. I'm not sure how best to go about that. :( > > :$volume_tag$ > > Or something similar. Device names were the best I could come up with at > the time; volume tags would be better. Where volume tags are something unique to the data on the CD itself (or other FS for that matter) that the FS code would look for on each suitable boot device? I.e. the cd9660 or ufs or what not code would look at each disk, cd, md disk, and see if it the tag matched? Hummm, I could see doing this after as a second pass if the volume_tag field doesn't look like a device name. Look up the vfs and use a function that uses a vfs-specific check_voltag() function (with a better name) that walks a list of devices. The MI function could generate the list of devices and basically pass the tag and device to check_voltag() until it gets a success. Or something like that. I don't really have the time but it sounds agreeable to me if that's what you meant. :) -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message