mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-03 12:31: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);
|
||||
fd = open(dev, O_RDONLY);
|
||||
if (fd == -1)
|
||||
break;
|
||||
continue;
|
||||
close(fd);
|
||||
strncpy(devices[j++], dev, EMILE_MAX_DEVNAME);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user