On Wed, 2007-11-07 at 22:32 +0100, Rene Herman wrote: > On 07-11-07 09:19, Steve R. Hastings wrote: > > However, in my tests, the drive still ejects the disk even when I use > > the CDROM_LOCKDOOR IOCTL to lock it. > > Works for me on a pata/sr driven CD-ROM and DVD. The description sort of > makes it sound like the ioctl is a toggle, so are you perhaps not passing > the 1/0 lock/unlock argument? No, the cdrom.txt file was pretty clear and I followed the documentation in there; I knew it's not a toggle. I could post my code, but it's much like yours. Also, I compiled and ran your code with the same results as my code (no error returned, also tray not locked). I think I'll try uninstalling some kernel modules and see if that changes my results. (The application uses some proprietary modules, so my kernel is tainted.) Thank you for the advice. -- Steve R. Hastings "Vita est" steve@xxxxxxxxxxxx http://www.blarg.net/~steveha -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ