summaryrefslogtreecommitdiffstats
path: root/src/photorec.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-02-07 09:17:12 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2011-02-07 09:17:12 +0100
commit237b0d53ac0d638ccbd8671293b6695436bad32c (patch)
treead4178e092a225fe05d9cf69aa312b0db41367e2 /src/photorec.c
parent2d02984cbcde496a462304bb2bdcdfe5550c8e43 (diff)
Minimal support to list and copy files from exFAT for TestDisk.
PhotoRec:Can carve files from exFAT free space only
Diffstat (limited to 'src/photorec.c')
-rw-r--r--src/photorec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/photorec.c b/src/photorec.c
index 475c7d7..73b310c 100644
--- a/src/photorec.c
+++ b/src/photorec.c
@@ -41,6 +41,7 @@
#include "dir.h"
#include "filegen.h"
#include "photorec.h"
+#include "exfatp.h"
#include "ext2p.h"
#include "fatp.h"
#include "ntfsp.h"
@@ -390,6 +391,8 @@ unsigned int remove_used_space(disk_t *disk_car, const partition_t *partition, a
partition->upart_type==UP_FAT16 ||
partition->upart_type==UP_FAT32)
return fat_remove_used_space(disk_car, partition, list_search_space);
+ else if(partition->upart_type==UP_EXFAT)
+ return exfat_remove_used_space(disk_car, partition, list_search_space);
#ifdef HAVE_LIBNTFS
else if(partition->upart_type==UP_NTFS)
return ntfs_remove_used_space(disk_car, partition, list_search_space);
@@ -708,7 +711,6 @@ alloc_data_t *file_finish2(file_recovery_t *file_recovery, const char *recup_dir
}
fclose(file_recovery->handle);
file_recovery->handle=NULL;
- // log_debug("%s %llu\n",file_recovery->filename,(long long unsigned)file_recovery->file_size);
if(file_recovery->file_size>0)
{
if(file_recovery->time!=0 && file_recovery->time!=(time_t)-1)