Scan for the first 20 disks under Mac OS X instead of 10 (fix)

This commit is contained in:
Christophe Grenier 2009-10-06 07:32:52 +02:00
parent fd56b0906f
commit ea16ced823

View file

@ -272,18 +272,16 @@ list_disk_t *hd_parse(list_disk_t *list_disk, const int verbose, const arch_fnct
#elif defined(__APPLE__)
{
char device[100];
char device_scsi[]="/dev/disk0";
char device_raw[]="/dev/rdisk0";
/* Disk */
for(i=0;i<20;i++)
{
snprintf(device, sizeof(device), "/dev/disk%u", i);
list_disk=insert_new_disk(list_disk,file_test_availability(device_scsi,verbose,arch,testdisk_mode));
list_disk=insert_new_disk(list_disk,file_test_availability(device, verbose, arch, testdisk_mode));
}
for(i=0;i<20;i++)
{
snprintf(device, sizeof(device), "/dev/rdisk%u", i);
list_disk=insert_new_disk(list_disk,file_test_availability(device_raw,verbose,arch,testdisk_mode));
list_disk=insert_new_disk(list_disk,file_test_availability(device, verbose, arch, testdisk_mode));
}
}
#elif defined(TARGET_LINUX)