From alex@second.bit.ab.ru  Sat Oct 22 10:43:46 2005
Return-Path: <alex@second.bit.ab.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8CA6B16A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 22 Oct 2005 10:43:46 +0000 (GMT)
	(envelope-from alex@second.bit.ab.ru)
Received: from prime.bit.ab.ru (prime.bit.ab.ru [212.94.100.160])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9C02A43D45
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 22 Oct 2005 10:43:44 +0000 (GMT)
	(envelope-from alex@second.bit.ab.ru)
Received: from home.bit.ab.ru (dialup6.bit.ab.ru [192.168.1.226])
	by prime.bit.ab.ru (8.13.1/8.13.1) with ESMTP id j9MAheHv028768
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 22 Oct 2005 17:43:41 +0700 (OMSST)
	(envelope-from alex@second.bit.ab.ru)
Received: from second.bit.ab.ru (localhost [127.0.0.1])
	by home.bit.ab.ru (8.13.4/8.13.4) with ESMTP id j9MAjpIB001071
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 22 Oct 2005 17:45:51 +0700 (OMSST)
	(envelope-from alex@second.bit.ab.ru)
Received: (from alex@localhost)
	by second.bit.ab.ru (8.13.4/8.13.4/Submit) id j9MAjotT001070;
	Sat, 22 Oct 2005 17:45:50 +0700 (OMSST)
	(envelope-from alex)
Message-Id: <200510221045.j9MAjotT001070@second.bit.ab.ru>
Date: Sat, 22 Oct 2005 17:45:50 +0700 (OMSST)
From: Alex Masterov <alex@infobit.ru>
Reply-To: Alex Masterov <alex@infobit.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: If using ATAPICAM with cd(dvd)rw without media, devfs.conf has no effect on cd0 and pass0
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         87836
>Category:       kern
>Synopsis:       [devfs] 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:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 22 10:50:07 GMT 2005
>Closed-Date:    Wed Feb 08 09:25:32 UTC 2012
>Last-Modified:  Wed Feb 08 09:25:32 UTC 2012
>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@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:
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Wed Feb 8 09:24:34 UTC 2012 
State-Changed-Why:  

We no longer support 6.x, and the landscape for these devices has changed 
quite a bit. If this is still a problem for a supported version of FreeBSD 
please open a new PR. 


Responsible-Changed-From-To: freebsd-bugs->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Wed Feb 8 09:24:34 UTC 2012 
Responsible-Changed-Why:  

I'm closing this one. 

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