From 6c17e6bd9c0ef146d1b62d26144cb18e9b6b88b7 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Tue, 27 May 2008 00:18:35 +0200 Subject: [PATCH] Scan for /dev/mmcblk? --- src/hdaccess.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/hdaccess.c b/src/hdaccess.c index 85103861..38cad17c 100644 --- a/src/hdaccess.c +++ b/src/hdaccess.c @@ -276,6 +276,7 @@ list_disk_t *hd_parse(list_disk_t *list_disk, const int verbose, const arch_fnct char device_cciss[]="/dev/cciss/c0d0"; char device_p_ide[]="/dev/pda"; char device_i2o_hd[]="/dev/i2o/hda"; + char device_mmc[]="/dev/mmcblk0"; /* Disk IDE */ for(i=0;i<8;i++) { @@ -327,6 +328,12 @@ list_disk_t *hd_parse(list_disk_t *list_disk, const int verbose, const arch_fnct device_i2o_hd[strlen(device_i2o_hd)-1]='a'+i; list_disk=insert_new_disk(list_disk,file_test_availability(device_i2o_hd,verbose,arch,testdisk_mode)); } + /* Memory card */ + for(i=0;i<10;i++) + { + device_mmc[strlen(device_mmc)-1]='0'+i; + list_disk=insert_new_disk(list_disk,file_test_availability(device_mmc,verbose,arch,testdisk_mode)); + } #ifdef HAVE_GLOB_H list_disk=hd_glob_parse("/dev/mapper/*", list_disk, verbose, arch, testdisk_mode); list_disk=hd_glob_parse("/dev/md?", list_disk, verbose, arch, testdisk_mode);