Date: Wed, 23 Dec 1998 01:06:21 -0800 From: Mike Smith <mike@smith.net.au> To: Ben Smithurst <ben@scientia.demon.co.uk> Cc: freebsd-current@FreeBSD.ORG Subject: Re: CD-ROM drive stays locked Message-ID: <199812230906.BAA00744@dingo.cdrom.com> In-Reply-To: Your message of "Fri, 18 Dec 1998 20:30:23 GMT." <19981218203023.A315@scientia.demon.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812230906.BAA00744>
