From owner-freebsd-current Wed Dec 23 01:08:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA17533 for freebsd-current-outgoing; Wed, 23 Dec 1998 01:08:55 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (castles349.castles.com [208.214.167.49]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA17527 for ; Wed, 23 Dec 1998 01:08:52 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (LOCALHOST [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id BAA00744; Wed, 23 Dec 1998 01:06:21 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199812230906.BAA00744@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Ben Smithurst cc: freebsd-current@FreeBSD.ORG Subject: Re: CD-ROM drive stays locked In-reply-to: Your message of "Fri, 18 Dec 1998 20:30:23 GMT." <19981218203023.A315@scientia.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 23 Dec 1998 01:06:21 -0800 From: Mike Smith 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.) I think it's because some drives will return this sense key if the disk is an audio disk, but I don't actually have one like that. > --- 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. */ Looks good, seems to work OK. Committed. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message