Re: Questions on CDROM support

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sat, 9 Oct 1999 10:53:50 +0100 (BST)


> This is what I'd like to do. I'd like to modify the EIDE and/or SCSI
> CDROM driver(s) to automatically mount a CD when it is inserted and unmount

This is a user space problem for some things.

> Do SCSI or EIDE CDROMs notify the host enviroment in any way that the eject
> button has been pressed or that its status has changed either directly or
> indirectly? If not, could the pressing of the eject button be monitored
> through some sort of polling?

You can discover it has been loaded by monitoring returns from commands sent
to the drive. The magicdev toy in Red Hat 6.1 does the mount handling for
the gnome desktop. It doesn't try to address umount. That requires the
stackable fs stuff and then a port of Stephen Tweedie's supermount fs code.

Magicdev is free software so should give you a chunk of the code you need.

-
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/