summaryrefslogtreecommitdiffstats
path: root/src/pfree_whole.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/pfree_whole.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/pfree_whole.c')
-rw-r--r--src/pfree_whole.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/pfree_whole.c b/src/pfree_whole.c
index 76c8fd4..6a208c5 100644
--- a/src/pfree_whole.c
+++ b/src/pfree_whole.c
@@ -43,6 +43,12 @@ int ask_mode_ext2(const disk_t *disk_car, const partition_t *partition, unsigned
{'O',"Other","FAT/NTFS/HFS+/ReiserFS/..."},
{0,NULL,NULL}
};
+ static const struct MenuItem menuexFAT[]=
+ {
+ {'F',"Free", "Scan for files from exFAT unallocated space only"},
+ {'W',"Whole","Extract files from whole partition"},
+ {0,NULL,NULL}
+ };
static const struct MenuItem menuFAT12[]=
{
{'F',"Free", "Scan for files from FAT12 unallocated space only"},
@@ -110,8 +116,11 @@ int ask_mode_ext2(const disk_t *disk_car, const partition_t *partition, unsigned
wmove(window,7,0);
wclrtoeol(window);
waddstr(window,"Please choose if all space need to be analysed:");
- if(partition->upart_type==UP_FAT12)
- command = wmenuSelect_ext(window, 23, 8, 0, menuFAT16, 11,
+ if(partition->upart_type==UP_EXFAT)
+ command = wmenuSelect_ext(window, 23, 8, 0, menuexFAT, 11,
+ options, MENU_VERT | MENU_VERT_WARN | MENU_BUTTON, &menu,NULL);
+ else if(partition->upart_type==UP_FAT12)
+ command = wmenuSelect_ext(window, 23, 8, 0, menuFAT12, 11,
options, MENU_VERT | MENU_VERT_WARN | MENU_BUTTON, &menu,NULL);
else if(partition->upart_type==UP_FAT16)
command = wmenuSelect_ext(window, 23, 8, 0, menuFAT16, 11,