Messages in this thread |  | | Date | Mon, 22 Jul 1996 16:22:08 -0400 (EDT) | From | David Schwartz <> |
| |
One of the first things they teach programmers is that no matter what code you write, you can't hurt the hardware. However, if I run the following line of code while the plastic cover is closed on my computer:
void main(void) { ioctl(open("/dev/cdrom",0),0x5309,0); }
which causes my CDROM drive to eject, which is physically impossible when the case slider is over it. The kernel reports the following:
hdb : tray open or drive not ready hdb : tray open or drive not ready hdb: packet command error: status=0x51 hdb: packet command error: error=0x40 hdb: code: 0x70 key: 0x04 asc: 0xb6 ascq: 0x00
Not exactly the most logical way to report this error, is it?
DS
|  |