From owner-freebsd-current Fri Dec 18 12:44:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA29193 for freebsd-current-outgoing; Fri, 18 Dec 1998 12:44:10 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA29178 for ; Fri, 18 Dec 1998 12:44:03 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from ben by scientia.demon.co.uk with local (Exim 2.10 #1) id 0zr6XX-00005T-00 for freebsd-current@freebsd.org; Fri, 18 Dec 1998 20:30:23 +0000 Date: Fri, 18 Dec 1998 20:30:23 +0000 From: Ben Smithurst To: freebsd-current@FreeBSD.ORG Subject: CD-ROM drive stays locked Message-ID: <19981218203023.A315@scientia.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG If I do `mount /cdrom' without a CD-ROM in the (IDE) drive, the drive remains locked, and I can't eject the drive after that without disconnecting/reconnecting its power. The following patch seems to fix it, although is it possible there will be some unwanted side-effects? (Also, why does the error message say `audio disc'? If there's no disc in I don't see why it should care about it being an audio disc or not.) --- wcd.c~ Fri Dec 18 19:31:34 1998 +++ wcd.c Fri Dec 18 19:22:33 1998 @@ -692,6 +692,7 @@ if (result.error & ~AER_SKEY) { /* Audio disc. */ printf ("wcd%d: cannot read audio disc\n", t->lun); + t->flags &= ~F_LOCKED; return; } /* Tray open. */ -- Ben Smithurst ben@scientia.demon.co.uk send a blank message to ben+pgp@scientia.demon.co.uk for PGP key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message