From owner-cvs-all Tue Nov 12 13:16:36 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6568637B410 for ; Tue, 12 Nov 2002 13:16:34 -0800 (PST) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id ED5C843E4A for ; Tue, 12 Nov 2002 13:16:31 -0800 (PST) (envelope-from Gerhard.Sittig@gmx.net) Received: (qmail 23577 invoked by uid 0); 12 Nov 2002 21:16:30 -0000 Received: from p509102af.dip0.t-ipconnect.de (HELO mail.gsinet.sittig.org) (80.145.2.175) by mail.gmx.net (mp009-rz3) with SMTP; 12 Nov 2002 21:16:30 -0000 Received: (qmail 17203 invoked from network); 12 Nov 2002 21:09:07 -0000 Received: from shell.gsinet.sittig.org (192.168.11.153) by mail.gsinet.sittig.org with SMTP; 12 Nov 2002 21:09:07 -0000 Received: (from sittig@localhost) by shell.gsinet.sittig.org (8.11.3/8.11.3) id gACL90c17190 for cvs-all@FreeBSD.org; Tue, 12 Nov 2002 22:09:00 +0100 (CET) (envelope-from sittig) Date: Tue, 12 Nov 2002 22:09:00 +0100 From: Gerhard Sittig 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> References: <200211091831.gA9IVWsB094272@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200211091831.gA9IVWsB094272@repoman.freebsd.org>; from ue@FreeBSD.org on Sat, Nov 09, 2002 at 10:31:32AM -0800 Organization: System Defenestrators Inc. 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 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