Re: Annoying CD-rom driver error messages

From: Francis Galiegue (fg@mandrakesoft.com)
Date: Tue Mar 06 2001 - 11:52:21 EST


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/



This archive was generated by hypermail 2b29 : Wed Mar 07 2001 - 21:00:20 EST