lkml.org 
[lkml]   [1996]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 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);



\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.033 / U:1.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site