From kagotani@in.it.okayama-u.ac.jp Tue Mar 23 20:06:06 1999
Return-Path: <kagotani@in.it.okayama-u.ac.jp>
Received: from herring.in.it.okayama-u.ac.jp (herring.in.it.okayama-u.ac.jp [150.46.6.41])
	by hub.freebsd.org (Postfix) with ESMTP id 8E253152F6
	for <freebsd-gnats-submit@freebsd.org>; Tue, 23 Mar 1999 20:06:03 -0800 (PST)
	(envelope-from kagotani@in.it.okayama-u.ac.jp)
Received: from deimos.in.it.okayama-u.ac.jp (deimos.in.it.okayama-u.ac.jp [150.46.6.88])
	by herring.in.it.okayama-u.ac.jp (8.8.8/3.6W) with ESMTP id NAA27021;
	Wed, 24 Mar 1999 13:05:43 +0900 (JST)
Received: (from kagotani@localhost)
	by deimos.in.it.okayama-u.ac.jp (8.9.2/3.6W) id NAA04487;
	Wed, 24 Mar 1999 13:06:14 +0900 (JST)
Message-Id: <199903240406.NAA04487@deimos.in.it.okayama-u.ac.jp>
Date: Wed, 24 Mar 1999 13:06:14 +0900 (JST)
From: Hiroto Kagotani <kagotani@in.it.okayama-u.ac.jp>
Reply-To: kagotani@in.it.okayama-u.ac.jp
To: FreeBSD-gnats-submit@freebsd.org
Cc: kagotani@in.it.okayama-u.ac.jp
Subject: obsolete device name wcd is still in kernel
X-Send-Pr-Version: 3.2

>Number:         10766
>Category:       i386
>Synopsis:       obsolete device name wcd is still left unchanged in kernel code
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 23 20:10:01 PST 1999
>Closed-Date:    Sat Aug 5 14:46:31 PDT 2000
>Last-Modified:  Sat Aug 05 14:47:50 PDT 2000
>Originator:     Hiroto Kagotani
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
Okayama University
>Environment:

	any

>Description:

	Although IDE CD-ROM device name "wcd" has been changed to "acd",
	kernel may print "trying wcd0 as rootdev (...)" in verbose mode.

>How-To-Repeat:

	1. modify loader so that it can handle -C (boot with cdrom root fs).
diff -ru boot-/i386/libi386/bootinfo.c boot/i386/libi386/bootinfo.c
--- boot-/i386/libi386/bootinfo.c	Sun Jan 24 09:16:00 1999
+++ boot/i386/libi386/bootinfo.c	Wed Mar 24 11:39:47 1999
@@ -76,6 +76,9 @@
 		case 'a':
 		    howto |= RB_ASKNAME;
 		    break;
+		case 'C':
+		    howto |= RB_CDROM;
+		    break;
 		case 'c':
 		    howto |= RB_CONFIG;
 		    break;
	2. replace /boot/loader in kern.flp with the binary above.
	3. replace /boot/loader.rc in kern.flp with the following 2 lines:
load /kernel
boot -C -v
	4. boot with the modified kern.flp.

	

>Fix:
	
--- i386/i386/autoconf.c.orig	Tue Mar 23 16:53:31 1999
+++ i386/i386/autoconf.c	Tue Mar 23 16:54:17 1999
@@ -130,7 +130,7 @@
 	{ "mcd", 7 },
 	{ "scd", 16 },
 	{ "matcd", 17 },
-	{ "wcd", 19 },
+	{ "acd", 19 },
 	{ 0, 0}
 };
 

>Release-Note:
>Audit-Trail:

From: Chris Costello <chris@holly.dyndns.org>
To: Hiroto Kagotani <kagotani@in.it.okayama-u.ac.jp>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: i386/10766: obsolete device name wcd is still in kernel
Date: Tue, 23 Mar 1999 22:24:21 -0600

 On Tue, Mar 23, 1999, Hiroto Kagotani wrote:
 > >Description:
 > 
 > 	Although IDE CD-ROM device name "wcd" has been changed to "acd",
 > 	kernel may print "trying wcd0 as rootdev (...)" in verbose mode.
 
    Incorrect, it has been renamed to wcd again.
 
 > 
 > >Release-Note:
 > >Audit-Trail:
 > >Unformatted:
 > 
 > 
 > To Unsubscribe: send mail to majordomo@FreeBSD.org
 > with "unsubscribe freebsd-bugs" in the body of the message
 > 
 
State-Changed-From-To: open->closed 
State-Changed-By: nbm 
State-Changed-When: Sat Aug 5 14:46:31 PDT 2000 
State-Changed-Why:  
That identifying code has been removed since. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=10766 
>Unformatted:
