Fwd: CD-ROM drive locked? (fwd)

Erik Andersen (andersee@et.byu.edu)
Fri, 29 Nov 1996 17:00:33 -0700


Could the people having problems with IDE/ATAPI cdrom door locking (as well
as those not having problems) try out this patch and see if this fixes
things for them? If you try this, please let me know if it works for you,
so I can know if this should go into the kernel. I have not yet tried it,
since I am too busy right now to even breathe.
-Erik

--
Erik B. Andersen        Web:    http://www.et.byu.edu/~andersee/ 
2485 South State St.    email:  andersee@et.byu.edu or andersee@debian.org
Springville, Ut 84663   phone:  (801) 489-1231
--This message was written using 73% post-consumer electrons--

-----Forwarded message from gadio@netvision.net.il (Gadi Oxman)-----

Hi Erik,

I don't know if this is the best way to solve it, but it will probably work for most scenarios.

Bye,

Gadi

--- v2.1.13/linux/drivers/block/ide-cd.c Wed Nov 27 15:31:48 1996 +++ linux/drivers/block/ide-cd.c Thu Nov 28 19:55:08 1996 @@ -1217,7 +1217,7 @@ and we think that the door is presently, lock it again. (The door was probably unlocked via an explicit CDROMEJECT ioctl.) */ - if (CDROM_STATE_FLAGS (drive)->door_locked == 0 && + if (CDROM_STATE_FLAGS (drive)->door_locked == 0 && drive->usage && (pc->c[0] != REQUEST_SENSE && pc->c[0] != ALLOW_MEDIUM_REMOVAL && pc->c[0] != START_STOP)) {