kern/95407: atapicam, cd and /etc/rc.d/devfs problem

Dmitry Kazarov kazarov at
Thu Apr 6 12:00:35 UTC 2006

>Number:         95407
>Category:       kern
>Synopsis:       atapicam, cd and /etc/rc.d/devfs problem
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 06 12:00:32 GMT 2006
>Originator:     Dmitry Kazarov
>Release:        FreeBSD 6.1-PRERELEASE
Multicom Ltd, Moscow
FreeBSD 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Wed Apr  5 09:57:37 MSD 2006     root at  i386

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).

to /boot/loader.conf

BUT this will affect all SCSI devices, not only atapicam.

More information about the freebsd-bugs mailing list