>
> andrey> I know. For this reason disabling autoclose seems to be less evil
> to
> andrey> me.
>
> But this is a driver thing, and I think that it is quite possible that
> a lot of hardware has it hardcoded: if you try to read cd & cd is
> open, first close. Not sure.
>
drivers/cdrom/cdrom.c:open_for_data()
...
if (ret == CDS_TRAY_OPEN) {
cdinfo(CD_OPEN, "the tray is open...\n");
/* can/may i close it? */
if (CDROM_CAN(CDC_CLOSE_TRAY) &&
cdi->options & CDO_AUTO_CLOSE) {
cdinfo(CD_OPEN, "trying to close the
tray.\n");
ret=cdo->tray_move(cdi,0);
I do not say there is no drives that implement it in hardware. In which case
disabling autoclose makes no difference. But in all cases I know of it is
software, and not generic driver.
-andrey