Date: Fri, 18 Dec 1998 20:30:23 +0000 From: Ben Smithurst <ben@scientia.demon.co.uk> To: freebsd-current@FreeBSD.ORG Subject: CD-ROM drive stays locked Message-ID: <19981218203023.A315@scientia.demon.co.uk>
next 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.)
--- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981218203023.A315>
