From owner-freebsd-bugs@FreeBSD.ORG Sun Jan 25 14:20:30 2004 Return-Path: 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 02DB716A4CE for ; Sun, 25 Jan 2004 14:20:30 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 443FC43D64 for ; Sun, 25 Jan 2004 14:20:16 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i0PMKGFR085367 for ; Sun, 25 Jan 2004 14:20:16 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i0PMKGFG085366; Sun, 25 Jan 2004 14:20:16 -0800 (PST) (envelope-from gnats) Resent-Date: Sun, 25 Jan 2004 14:20:16 -0800 (PST) Resent-Message-Id: <200401252220.i0PMKGFG085366@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, Artem Ignatiev Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 51FCA16A4CE for ; Sun, 25 Jan 2004 14:10:22 -0800 (PST) Received: from memphis.mephi.ru (memphis.mephi.ru [194.67.67.234]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9344B43D53 for ; Sun, 25 Jan 2004 14:10:20 -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 i0PMAF57007077 for ; Mon, 26 Jan 2004 01:10:15 +0300 (MSK) (envelope-from timon@memphis.mephi.ru) Received: (from timon@localhost) by memphis.mephi.ru (8.12.6p2/8.12.6/Submit) id i0PMAE5p007076; Mon, 26 Jan 2004 01:10:14 +0300 (MSK) Message-Id: <200401252210.i0PMAE5p007076@memphis.mephi.ru> Date: Mon, 26 Jan 2004 01:10:14 +0300 (MSK) From: Artem Ignatev To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/61909: 5.2-Current fails to notice change of CD in drive X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Artem Ignatiev List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jan 2004 22:20:30 -0000 >Number: 61909 >Category: kern >Synopsis: 5.2-Current fails to notice change of CD in drive >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jan 25 14:20:15 PST 2004 >Closed-Date: >Last-Modified: >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: >Unformatted: