Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CD-ROM drive stays locked

0 views
Skip to first unread message

Mike Smith

unread,
Dec 23, 1998, 3:00:00 AM12/23/98
to
> 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. \\ mi...@smith.net.au
\\ The race is long, and in the \\ msm...@freebsd.org
\\ end it's only with yourself. \\ msm...@cdrom.com

To Unsubscribe: send mail to majo...@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message

0 new messages