lkml.org 
[lkml]   [2002]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] 2.5.14 IDE 56
Date
From
> int i, type, major=0, minor=0;
> for(i=0; i<26; i++) {
> snprintf(device_string, sizeof(device_string), "/dev/hd%c", 'a'+i);
> if ((fd=open(device_string, O_RDONLY | O_NONBLOCK)) < 0) {
> continue;
> }

If it opened is it there. Suppose its an IDE floppy and no media is
present. Maybe its hiding in ide-scsi instead. It ends up being detective
work. The /device set up makes it explicit and clean
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.250 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site