From timon@memphis.mephi.ru  Sun Jan 18 08:44:13 2004
Return-Path: <timon@memphis.mephi.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 47CD616A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 18 Jan 2004 08:44:13 -0800 (PST)
Received: from memphis.mephi.ru (memphis.mephi.ru [194.67.67.234])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 81D1343D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 18 Jan 2004 08:44:02 -0800 (PST)
	(envelope-from timon@memphis.mephi.ru)
Received: from memphis.mephi.ru (timon@localhost [127.0.0.1])
	by memphis.mephi.ru (8.12.6p2/8.12.6) with ESMTP id i0IGhu57023186
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 18 Jan 2004 19:43:56 +0300 (MSK)
	(envelope-from timon@memphis.mephi.ru)
Received: (from timon@localhost)
	by memphis.mephi.ru (8.12.6p2/8.12.6/Submit) id i0IGhtN3023185;
	Sun, 18 Jan 2004 19:43:55 +0300 (MSK)
Message-Id: <200401181643.i0IGhtN3023185@memphis.mephi.ru>
Date: Sun, 18 Jan 2004 19:43:55 +0300 (MSK)
From: Artem Ignatev <timon@memphis.mephi.ru>
Reply-To: Artem Ignatiev <timon@memphis.mephi.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: 5.2-Current fails to notice change of CD in drive
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         61537
>Category:       kern
>Synopsis:       5.2-Current fails to notice change of CD in drive
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 18 08:50:07 PST 2004
>Closed-Date:    Thu Aug 26 20:34:21 GMT 2004
>Last-Modified:  Thu Aug 26 20:34:21 GMT 2004
>Originator:     Artem Ignatiev
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD timon.nist 5.2-CURRENT FreeBSD 5.2-CURRENT #1: Sun Jan 4 22:50:09 MSK 2004 root@timon.nist:/usr/obj/usr/src/sys/TIMON i386


	
>Description:
	When CD is changed in drive (or removed from it), kernel still maintains
	data from its TOC, like tracklist or CD ID. That confuses programs, i.e
	dagrab requests CDDB for previous CD in drive, and therefore gets wrong
	tracklist.
	Also stale files /dev/acdXtNN are kept in /dev
	
	One must force kernel to renew TOC, for example issuing a `cdcontrol 1'
	command.
	
>How-To-Repeat:
	Insert some audio cd in drive
	Read it contents (use dagrab -CN to extract some audiotracks)
	Remove cd from drive.
	ls /dev/acd?t* ; cdcontrol info 
	- and see info about the cd you're holding in hands
	
	
>Fix:
	Workaround: start playing from new cd (or mount it). After that you can do
	what you wanted to do.
	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Thu Aug 26 20:33:48 GMT 2004 
State-Changed-Why:  
See kern/61909 for more discussion. 

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