From owner-freebsd-bugs@FreeBSD.ORG Sat Oct 22 10:50:09 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03A6616A41F for ; Sat, 22 Oct 2005 10:50:08 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6429743D46 for ; Sat, 22 Oct 2005 10:50:08 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9MAo8w7014004 for ; Sat, 22 Oct 2005 10:50:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9MAo8dc014003; Sat, 22 Oct 2005 10:50:08 GMT (envelope-from gnats) Resent-Date: Sat, 22 Oct 2005 10:50:08 GMT Resent-Message-Id: <200510221050.j9MAo8dc014003@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alex Masterov Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8CA6B16A41F for ; 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 ; 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 ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/87836: If using ATAPICAM with cd(dvd)rw without media, devfs.conf has no effect on cd0 and pass0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alex Masterov List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Oct 2005 10:50:09 -0000 >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@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: