summaryrefslogtreecommitdiffstats
path: root/src/dirpart.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/dirpart.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/dirpart.c')
-rw-r--r--src/dirpart.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dirpart.c b/src/dirpart.c
index 9d596be..949019d 100644
--- a/src/dirpart.c
+++ b/src/dirpart.c
@@ -39,6 +39,7 @@
#endif
#include "dir.h"
#include "dirn.h"
+#include "exfat_dir.h"
#include "ext2_dir.h"
#include "fat_dir.h"
#include "ntfs_dir.h"
@@ -61,7 +62,11 @@ int dir_partition(disk_t *disk_car, const partition_t *partition, const int verb
if(is_part_fat(partition))
res=dir_partition_fat_init(disk_car,partition,&dir_data,verbose);
else if(is_part_ntfs(partition))
+ {
res=dir_partition_ntfs_init(disk_car,partition,&dir_data,verbose);
+ if(res!=0)
+ res=dir_partition_exfat_init(disk_car, partition, &dir_data, verbose);
+ }
else if(is_part_linux(partition))
{
res=dir_partition_ext2_init(disk_car,partition,&dir_data,verbose);
@@ -90,6 +95,9 @@ int dir_partition(disk_t *disk_car, const partition_t *partition, const int verb
case UP_NTFS:
res=dir_partition_ntfs_init(disk_car,partition,&dir_data,verbose);
break;
+ case UP_EXFAT:
+ res=dir_partition_exfat_init(disk_car, partition, &dir_data, verbose);
+ break;
default:
return res;
}