Re: [PATCH] 2.5.14 IDE 56

From: Dave Jones (davej@suse.de)
Date: Wed May 08 2002 - 13:59:34 EST


On Wed, May 08, 2002 at 12:21:39PM -0600, Erik Andersen wrote:
> if ((fd=open(device_string, O_RDONLY | O_NONBLOCK)) < 0) {
 ...

> etc.... to detect the available ide devices without groveling
> through /proc/ide?

This goes splat with removable IDE devices like ZIP drives etc.
They fail to open() unless you put a disk in them.

-- 
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs
-
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 : Tue May 14 2002 - 12:00:09 EST