Re: CD_Rom problems (fwd)

From: Jens Axboe (axboe@suse.de)
Date: Wed Jul 12 2000 - 14:35:20 EST


On Wed, Jul 12 2000, Dave wrote:
> I believe what I was writing is...
>
> int main () {
> int file;
> int stats;
> file = open("/dev/hdd", O_RDONLY | O_NONBLOCK);
> ioctl(file, CDROM_GET_CAPABILITY, & stats);
> if (stats && CDC_SELECT_DISC)
> printf("Success!\n");
> else
> printf("<DOH!> Something went wrong\n");
> return 0;
> }

Yes, that is the test case to prove that it is not working.

> My CD-Changer is a NEC 8x4 disc changer and the vendor string is correctly
> detected. Could this be because I have a burner in the first IDE
> chain /dev/hdb. My changer is /dev/hdd. I know that I have written code
> that gets messed up on an assumption that assumes too much based on order
> of inputs. (Assembler I implemented...)

I need the detection messages, like I wrote in the previous mail.
Specifically the model and revision.

-- 
* Jens Axboe <axboe@suse.de>
* SuSE Labs

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jul 15 2000 - 21:00:15 EST