mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-20 03:29:57 +00:00
Allow to scan ATA bus, ignoring non allocated device (to jump from hda to hdc even if there is no hdb)
This commit is contained in:
parent
83a63cd81f
commit
0b6dcf91f1
@ -77,7 +77,7 @@ static int emile_scanbus(device_name_t devices[EMILE_MAX_DISK])
|
|||||||
sprintf(dev, "/dev/hd%c", 'a' + i);
|
sprintf(dev, "/dev/hd%c", 'a' + i);
|
||||||
fd = open(dev, O_RDONLY);
|
fd = open(dev, O_RDONLY);
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
break;
|
continue;
|
||||||
close(fd);
|
close(fd);
|
||||||
strncpy(devices[j++], dev, EMILE_MAX_DEVNAME);
|
strncpy(devices[j++], dev, EMILE_MAX_DEVNAME);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user