Date: Tue, 12 Nov 2002 22:09:00 +0100 From: Gerhard Sittig <Gerhard.Sittig@gmx.net> To: cvs-all@FreeBSD.org Subject: Re: wd(4) reference in 4.7-STABLE (was: cvs commit: src/release/doc/en_US.ISO8859-1/installation/common trouble.sgml) Message-ID: <20021112220900.H4807@shell.gsinet.sittig.org> In-Reply-To: <200211091831.gA9IVWsB094272@repoman.freebsd.org>; from ue@FreeBSD.org on Sat, Nov 09, 2002 at 10:31:32AM -0800 References: <200211091831.gA9IVWsB094272@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Nov 09, 2002 at 10:31 -0800, Udo Erdelhoff wrote:
>
> Modified files:
> release/doc/en_US.ISO8859-1/installation/common trouble.sgml
> Log:
> Change a forgotten wd to ad
Which reminds me: There is still a wd(4) reference around in
4.7-STABLE (or was it even newly introduced? this sysctl does
not exist in 4.5-RELEASE).
Boot a system from an IDE disk and issue the command
sysctl -a | grep /dev/wd
For me this results in
machdep.guessed_bootdev: /dev/wd0s4a
This sysctl is declared in src/sys/{i386,pc98}/i386/machdep.c and
src/sbin/sysctl/sysctl.c maps its numerical presentation to some
nice text in its machdep_bootdev() routine. Only few places in
userland reference this variable (mostly picobsd start scripts).
But those who do will run into some "/dev/wd0s4a: No such file or
directory" error.
All the C code only seems to pass this variable around (and
transforms it to its display representation) but does not set
its value. Is src/sys/i386/i386/locore.s the one to place a
"wrong" value into the _bootdev global? The newboot: and
olddiskboot: labels seem to get some information on their stack
and pass it to the kernel C code, but I'm too unfamiliar with
assembly and the boot code to help here. All I could do was to
grep the source.
If this is all known already and the "guessed" part of the
sysctl's name should be a strong hint to its non reliable
character feel free to ignore me. :) Or say so in your reply
and the archive will hold the answer, too, for the next person
to ask this question.
But then it might be worth considering to remove the "wd" entry
from the maj2name[] array in sysctl.c and have it print out the
"unknown" text instead of referencing obsolete devices.
virtually yours 82D1 9B9C 01DC 4FB4 D7B4 61BE 3F49 4F77 72DE DA76
Gerhard Sittig true | mail -s "get gpg key" Gerhard.Sittig@gmx.net
--
If you don't understand or are scared by any of the above
ask your parents or an adult to help you.
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?20021112220900.H4807>
