From ea16ced823ca807d40dbf9c73a5af22af24021a5 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Tue, 6 Oct 2009 07:32:52 +0200 Subject: [PATCH] Scan for the first 20 disks under Mac OS X instead of 10 (fix) --- src/hdaccess.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/hdaccess.c b/src/hdaccess.c index 93852768..622bdf1a 100644 --- a/src/hdaccess.c +++ b/src/hdaccess.c @@ -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)