Messages in this thread | | | Date | Wed, 25 Mar 1998 09:37:47 -0500 | From | Paul Koning <> | Subject | Re: Notification to user-space upon CD eject button being pressed? |
| |
>>>>> "James" == James Mastros <root@jennifer-unix.dyn.ml.org> writes:
James> On Wed, 25 Mar 1998, David Woodhouse wrote: >> Is it possible for a user-space program to receive notification >> when the eject button is pressed on a CD drive? >> >> It would be useful for automountd to automatically unmount and >> eject CDs when the eject button is pressed. James> With IDE CDs, anyway, it isn't possible for us to do this -- James> the drive doesn't tell us. We can have the drive be locked or James> unlocked, but in unlocked position, it ejects before telling James> us anything, and in locked position, it doesn't tell us when James> the button is pressed.
Even if it told us afterwards, that should be ok for a readonly FS, since a readonly FS never has to write anything back. In other words, the umount should just be a matter of cleaning up in-memory state, which can be done before or after the device goes away.
ZIP drives would be another matter (if mounted read/write).
paul
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |