Date: Fri, 8 Mar 2002 12:59:40 -0500 From: Garance A Drosihn <drosih@rpi.edu> To: Luigi Rizzo <rizzo@icir.org>, arch@FreeBSD.ORG Subject: Re: Proposed patch: kern.bootdev* sysctl variables Message-ID: <p05101521b8aea9bba209@[128.113.24.47]> In-Reply-To: <20020308020009.A6535@iguana.icir.org> References: <20020308020009.A6535@iguana.icir.org>
next in thread | previous in thread | raw e-mail | index | archive | help
At 2:00 AM -0800 3/8/02, Luigi Rizzo wrote: >Any objection to the following patch to i386/i386/autoconf.c >to let userland apps know [an approximation of] the name >of the device the kernel was booted from ? > >The main use would be for startup scripts, such as /etc/rc, >which could this way differentiate their behaviour based >on the returned result. I definitely like the goal. >(I know it can be perfected by not assuming that >any hard disk is /dev/ad, but you get the idea...) My machines tend to have scsi drives (and some of them have only scsi hard drives), and I can also boot off of CD's. If something like this is added, I think it pretty much has to give the correct answer in all cases. If not, it should give a helpful clue, but not guess at the answer and then present that guess as fact.. Ie, instead of "/dev/ad%ds%d", maybe return "disk%ds%d"... -- Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05101521b8aea9bba209>