summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-01-07 20:53:54 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2011-01-07 20:53:54 +0100
commitf0cccf0a714f0412a289791ec61629ea8e01d20a (patch)
tree126983827f41920599ce994afcce718b36055d61 /src
parent2c4b6dcbb956f43b07ecb0d1f6ab661c934693bc (diff)
On non-partionned media, discovers exFAT filesystem using backup sector.
Diffstat (limited to 'src')
-rw-r--r--src/partnone.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/partnone.c b/src/partnone.c
index 744b265..03a6024 100644
--- a/src/partnone.c
+++ b/src/partnone.c
@@ -86,7 +86,7 @@ static const struct systypes none_sys_types[] = {
{UP_EXT3, "ext3"},
{UP_EXT4, "ext4"},
/* {UP_EXTENDED, "Extended"}, */
- {UP_EXFAT, "EXFAT"},
+ {UP_EXFAT, "exFAT"},
{UP_FAT12, "FAT12"},
{UP_FAT16, "FAT16"},
{UP_FAT32, "FAT32"},
@@ -226,6 +226,11 @@ static list_part_t *read_part_none(disk_t *disk, const int verbose, const int sa
res=search_FAT_backup(buffer_disk, disk, partition, verbose, 0);
}
if(res<=0)
+ { /* Search exFAT backup */
+ partition->part_offset = 12 * disk->sector_size;
+ res=search_EXFAT_backup(buffer_disk, disk, partition);
+ }
+ if(res<=0)
{ /* Search NTFS backup */
partition->part_offset = disk->disk_size - disk->sector_size;
res=search_NTFS_backup(buffer_disk, disk, partition, verbose, 0);