Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Jan 2002 09:36:54 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Michael Smith <msmith@freebsd.org>
Cc:        cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, Bruce Evans <bde@zeta.org.au>
Subject:   Re: cvs commit: src/sys/boot/i386/libi386 bootinfo.c
Message-ID:  <XFMail.020106093654.jhb@FreeBSD.org>
In-Reply-To: <200201050235.g052Zij03312@mass.dis.org>

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

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
>> > <vfsname>[:<path>], 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. :(
> 
> <vfsname>:$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 <jhb@FreeBSD.org>  <><  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




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