On Sat, Jun 18, 2011 at 8:56 AM, Jan Stary <h...@stare.cz> wrote: > However, somebody somehow "remembers" the pending eject, > and once the device is unmounted, the CD ejects. > > # umount /mnt # CD ejects > > Is this expected? Is it documented? The manpage doesn't > mention this (cool) behaviour, and cdio.c doesn't seem > to do anything special about waiting for an umount. > > Does this depend on support from the hardware > (the CD drive remembering the eject request)?
If I'm not mistaken, this is dependent on the drive. When a CD is mounted, the drive is told it is busy. When unmounted, it is told not busy. The eject command is delivered, but it is delayed until the drive isn't busy. The same effect should be observable with the eject button as well.