Messages in this thread Patch in this message | ![/](/images/icornerl.gif) | | Date | Sun, 31 Mar 1996 20:04:50 -0600 (CST) | From | "B. Galliart" <> | Subject | Re: IDEA for CD auto eject/(dis)mount |
| |
On Sun, 31 Mar 1996, Steven S. Dick wrote: > I'd push to get CDROMCLOSETRAY put into the IDE driver too, except > that I don't have one of those creatures, so I can't test it very well. > > Steve
My IDE cdrom also can't support auto-closing. However, if someone wants to test the following patch can feel free to do so. :) It should apply cleanly to kernel version 1.3.81.
--- linux/drivers/block/ide-cd.c.orig Sun Mar 31 19:51:37 1996 +++ linux/drivers/block/ide-cd.c Sun Mar 31 19:52:39 1996 @@ -2105,6 +2105,14 @@ return 0; }
+ case CDROMCLOSETRAY: + { + if (drive->usage > 1) + return -EBUSY; + + return cdrom_eject (drive, 1, NULL); + } + case CDROMPAUSE: return cdrom_pause (drive, 1, NULL);
| ![\](/images/icornerr.gif) |