Re: Annoying CD-rom driver error messages

Francis Galiegue (fg@mandrakesoft.com)
Tue, 6 Mar 2001 17:52:21 +0100 (CET)


On Tue, 6 Mar 2001, LA Walsh wrote:

> So I'm still wondering what the "approved and recommended" way for a program
> to be "automatically" informed of a CD or floppy change/insertion and be able to
> informed of media 'type' w/o kernel warnings/error messages. It sounds like
> there is no kernel support for this so far?
>
> Then it seems the less ideal question is what is the "approved and recommended
> way for a program to "poll" such devices to check for 'changes' and 'media type'
> without the kernel generating spurious WARNINGS/ERRORS?
>

The main problem is, in fact: none of floppy drives/IDE
floppies/CDROMs/whatever can do asynchronous medium change notifications (at
least not that I know of), so you'll need to poll anyway... And of course, the
commands to send depend on the device...

-- 
Francis Galiegue, fg@mandrakesoft.com - Normand et fier de l'être
"Programming is a race between programmers, who try and make more and more
idiot-proof software, and universe, which produces more and more remarkable
idiots. Until now, universe leads the race"  -- R. Cook

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