From nobody@FreeBSD.org  Mon Aug  6 06:55:15 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3866E16A420
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  6 Aug 2007 06:55:15 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 24DE713C457
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  6 Aug 2007 06:55:15 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l766tFPC092734
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 6 Aug 2007 06:55:15 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l766tEiL092733;
	Mon, 6 Aug 2007 06:55:14 GMT
	(envelope-from nobody)
Message-Id: <200708060655.l766tEiL092733@www.freebsd.org>
Date: Mon, 6 Aug 2007 06:55:14 GMT
From: Yuri <yuri@tsoft.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Audio CD tracks not displayed properly by atapi driver
X-Send-Pr-Version: www-3.0

>Number:         115232
>Category:       kern
>Synopsis:       [ata] Audio CD tracks not displayed properly by atapi driver
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 06 07:00:05 GMT 2007
>Closed-Date:    Thu Aug 12 07:44:49 UTC 2010
>Last-Modified:  Thu Aug 12 07:44:49 UTC 2010
>Originator:     Yuri
>Release:        6.2-stable
>Organization:
n/a
>Environment:
FreeBSD xx.xx.xx 6.2-STABLE FreeBSD 6.2-STABLE #4: Tue Jul 24 13:39:31 PDT 2007     yuri@xx.xx.xx:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
When audio CD is into CDROM tracks aren't reflected correctly by ls /dev/acd0*.
Right after reboot only /dev/acd0 shows up when audio CD is in.
But after I do 'mount -t cd9660 /dev/acd0 /cdrom', mount errors out but all
tracks appear in /dev/acd0 (t01, t02...)

When I remove audio CD 'ls /dev/acd0*' still reflects tracks from the
previous CD, same after I insert a new audio CD. Tracks reread again only
after I attempt the mount command.

So the problem is that tracks aren't read by atapi driver automatically.
Also they aren't cleared when CD is removed.

This isn't reflected in Handbook, so people who just follow the Handbook
will fail miserably.
>How-To-Repeat:
see above
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: blackend 
State-Changed-When: Tue Aug 10 08:05:40 UTC 2010 
State-Changed-Why:  
Hello, 

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 
State-Changed-From-To: feedback->closed 
State-Changed-By: blackend 
State-Changed-When: Thu Aug 12 07:40:10 UTC 2010 
State-Changed-Why:  
This is not a dd(1) or ata(4) problem and a "workaround" is already 
present in the Handbook.  This should be resolved using HAL or maybe 
devd(8).  So let's close this PR. 

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