From nobody  Sat Oct 25 19:00:11 1997
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.7/8.8.7) id TAA08291;
          Sat, 25 Oct 1997 19:00:11 -0700 (PDT)
          (envelope-from nobody)
Message-Id: <199710260200.TAA08291@hub.freebsd.org>
Date: Sat, 25 Oct 1997 19:00:11 -0700 (PDT)
From: ji@research.att.com
To: freebsd-gnats-submit@freebsd.org
Subject: devfs not handling second IDE controller drives (wd2/wd3)
X-Send-Pr-Version: www-1.0

>Number:         4855
>Category:       kern
>Synopsis:       devfs not handling second IDE controller drives (wd2/wd3)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 25 19:10:01 PDT 1997
>Closed-Date:    Tue Oct 28 08:41:33 MET 1997
>Last-Modified:  Tue Oct 28 08:42:20 MET 1997
>Originator:     John Ioannidis
>Release:        2.2.2-RELEASE
>Organization:
AT&T Labs Research
>Environment:
FreeBSD elf.tla.org 2.2.2-RELEASE FreeBSD 2.2.2-RELEASE #0: Sun Oct 12 16:21:34 EDT 1997     root@elf.tla.org:/usr/src/sys/compile/ELF  i386

>Description:
devfs does not handle IDE drives hanging off the second IDE controller
(wdc1) properly. Instead of trying to attach them as [r]wd2 and [r]wd3,
it tries to attach them as [r]wd0 and [r]wd1. Here is the evidence:

wdc0 at 0x1f0-0x1f7 irq 14 on isa
wdc0: unit 0 (wd0): <QUANTUM SIROCCO1700A>
wd0: 1628MB (3335472 sectors), 3309 cyls, 16 heads, 63 S/T, 512 B/S
wdc0: unit 1 (wd1): <WDC AC33100H>
wd1: 3020MB (6185088 sectors), 6136 cyls, 16 heads, 63 S/T, 512 B/S
wdc1 at 0x170-0x177 irq 15 on isa
wdc1: unit 0 (wd2): <QUANTUM BIGFOOT_CY6480A>
wd2: 6204MB (12706470 sectors), 13446 cyls, 15 heads, 63 S/T, 512 B/S
Device wd0: name slot allocation failed (Errno=17)
Device rwd0: name slot allocation failed (Errno=17)

(17 is EEXIST). 

>How-To-Repeat:
put 3 or 4 drives in a machine. Boot!
>Fix:
I would fix it if I had time. It should be a five-minute fix for the
author of devfs!
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Tue Oct 28 08:41:33 MET 1997 
State-Changed-Why:  

Already fixed by time of submission. 
>Unformatted:
