Re: Floppy handling

From: Erik Andersen (andersen@xmission.com)
Date: Fri Jun 09 2000 - 03:30:13 EST


On Thu Jun 08, 2000 at 11:25:51PM -0700, H. Peter Anvin wrote:
>
> Now, CD-ROMs, IDE floppies, etc tend to be motorized and lockable. I
> believe Microsoft has been pushing for an extension to the IDE
> standard which will support media insert notification and
> button-push-while-locked ("umount me now") notification. If that is
> correct those would be easy to support.

For cdroms, I tested the support available for this last fall. While the Mt.
Fuji spec says you can do this, very few drives actually support Media Request
Events and External Request Events, plus (the bad news) since no cdrom drive
ever made supports asyncronous GET EVENT/STATUS NOTIFICATION commands, you have
to actively poll the drive to make it work. Ugh. Fortunately, if somebody
wants this type of thing, they can code it up in user space using the
CDROM_SEND_PACKET ioctl.

 -Erik

--
Erik B. Andersen   Web:    http://www.xmission.com/~andersen/ 
                   email:  andersee@debian.org
--This message was written using 73% post-consumer electrons--

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:17 EST