From nobody@FreeBSD.org  Thu Apr  6 11:52:33 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 57DFD16A423
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  6 Apr 2006 11:52:33 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6110243D80
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  6 Apr 2006 11:52:30 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k36BqUKp022674
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 6 Apr 2006 11:52:30 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k36BqTrh022673;
	Thu, 6 Apr 2006 11:52:29 GMT
	(envelope-from nobody)
Message-Id: <200604061152.k36BqTrh022673@www.freebsd.org>
Date: Thu, 6 Apr 2006 11:52:29 GMT
From: Dmitry Kazarov <kazarov@mcm.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: atapicam, cd and /etc/rc.d/devfs problem
X-Send-Pr-Version: www-2.3

>Number:         95407
>Category:       kern
>Synopsis:       [atapicam] atapicam, cd and /etc/rc.d/devfs problem
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 06 12:00:32 GMT 2006
>Closed-Date:    Sat Dec 18 20:22:53 UTC 2010
>Last-Modified:  Sat Dec 18 20:22:53 UTC 2010
>Originator:     Dmitry Kazarov
>Release:        FreeBSD 6.1-PRERELEASE
>Organization:
Multicom Ltd, Moscow
>Environment:
FreeBSD CE.multicom.ru 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Wed Apr  5 09:57:37 MSD 2006     root@CE.multicom.ru:/var/tmp/obj/usr/src/sys/CE  i386

>Description:
GENERIC kernel has option SCSI_DELAY=5000 which forces all CAM drivers to
wait 5 secs before probing devices. 

This is true also for atapicam driver. But since no device on atapicam bus
is used during boot kernel does not wait for devices (particulary scsi cd
device driver) to settle and start /sbin/init process quite early so
/etc/rc.d/devfs is executed before /dev/cd0 is created. And lines
concerning cd0 in /etc/devfs.conf are ignored.

IMHO, kernel should wait for all devices initialized during boot process to
finish initialization before starting userland stage of boot process
(/sbin/init).
>How-To-Repeat:

>Fix:
add
kern.cam.scsi_delay="200"
to /boot/loader.conf

BUT this will affect all SCSI devices, not only atapicam.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jh 
State-Changed-When: Sat Dec 18 20:22:52 UTC 2010 
State-Changed-Why:  
Duplicate of kern/87836. 

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