kern/87836: If using ATAPICAM with cd(dvd)rw without media, devfs.conf has no effect on cd0 and pass0

Alex Masterov alex at infobit.ru
Sat Oct 22 03:50:09 PDT 2005


>Number:         87836
>Category:       kern
>Synopsis:       If using ATAPICAM with cd(dvd)rw without media, devfs.conf has no effect on cd0 and pass0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 22 10:50:07 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Alex Masterov
>Release:        FreeBSD 6.0-RC1 i386
>Organization:
>Environment:
System: FreeBSD second.bit.ab.ru 6.0-RC1 FreeBSD 6.0-RC1 #0: Sat Oct 22 12:48:18 OMSST 2005 alex at home.bit.ab.ru:/usr/obj/usr/src/sys/FIRST i386


	
>Description:
Settings in /dev/devfs.conf (perm, link, etc) may be ineffective with
ATAPICAM-related devices (cd0, pass0, xpt0).
If ATA CD/DVD drive has no media in system boot time, there is a pause before
kernel creates cd0 devices with message:

cd0 at ata1 bus 0 target 0 lun 0
cd0: <_NEC DVD_RW ND-3540A 1.01> Removable CD-ROM SCSI-0 device
cd0: 33.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present

Script /etc/rc.d/devfs is runned BEFORE devices cd0,pass0,etc are created
and any paramters in /etc/devfs.conf does not applies to these devices.

>How-To-Repeat:
Compile FreeBSD kernel with

device          atapicam

FreeBSD host must have CD/DVD Drive of course.
Define any parameters in /etc/devfs.conf with device cd0 e.g.:

perm 0660 cd0

Reboot FreeBSD (CD/DVD must NOT have media inserted in boot time)
Check device permissions
ls -l /dev/cd0

>Fix:

 Workaround: run

 /etc/rc.d/devfs start

by hand after boot. Or insert "sleep 15" in the head of /etc/rc.d/devfs


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list