kern/95407: atapicam, cd and /etc/rc.d/devfs problem
kazarov at mcm.ru
Thu Apr 6 12:00:35 UTC 2006
>Synopsis: atapicam, cd and /etc/rc.d/devfs problem
>Arrival-Date: Thu Apr 06 12:00:32 GMT 2006
>Originator: Dmitry Kazarov
>Release: FreeBSD 6.1-PRERELEASE
Multicom Ltd, Moscow
FreeBSD CE.multicom.ru 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Wed Apr 5 09:57:37 MSD 2006 root at CE.multicom.ru:/var/tmp/obj/usr/src/sys/CE 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).
BUT this will affect all SCSI devices, not only atapicam.
More information about the freebsd-bugs