From owner-freebsd-bugs@FreeBSD.ORG Tue Aug 10 10:28:40 2010 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2BC8D1065670; Tue, 10 Aug 2010 10:28:40 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 8B43C8FC14; Tue, 10 Aug 2010 10:28:39 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id o7AASN5U064780; Tue, 10 Aug 2010 12:28:38 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id o7AASMsX064779; Tue, 10 Aug 2010 12:28:22 +0200 (CEST) (envelope-from olli) Date: Tue, 10 Aug 2010 12:28:22 +0200 (CEST) Message-Id: <201008101028.o7AASMsX064779@lurza.secnetix.de> From: Oliver Fromme To: freebsd-bugs@FreeBSD.ORG, yuri@rawbw.com, blackend@FreeBSD.ORG In-Reply-To: <4C6111C3.1030109@rawbw.com> X-Newsgroups: list.freebsd-bugs User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.4 (lurza.secnetix.de [127.0.0.1]); Tue, 10 Aug 2010 12:28:38 +0200 (CEST) Cc: Subject: Re: kern/115232: [ata] Audio CD tracks not displayed properly by atapi driver X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-bugs@FreeBSD.ORG, yuri@rawbw.com, blackend@FreeBSD.ORG List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2010 10:28:40 -0000 Yuri wrote: > Could you check if: > > # dd if=/dev/acd0 of=/dev/null count=1 > > > > does the trick as mentioned in the Handbook? > > > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=115232 > > Yes, this trick works. > But the problem with it is that this should be done without such 'dd' > command. User should be relieved from issuing such meaningless command It's not meaningless. It causes the driver to actually look at the drive, re-read the TOC of the CD (there is no other way to find out if the CD was changed) and update the device nodes in /dev. > since system can do this automatically, avoiding user actions and > possible user confusion. > > Driver knows when disk is inserted No, the driver does *not* know when a disk is inserted, unless it actually accesses the CD (caused by the "dd" command above, for example). Automatic detection and notification is not supported by the hardware (unlike USB devices, for example). > (for example in Windows autorun executes when disk is inserted). That only works because Windows actively polls the drives periodically, which is a bad hack, in my opinion. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd $ dd if=/dev/urandom of=test.pl count=1 $ file test.pl test.pl: perl script text executable