MCPcopy Create free account
hub / github.com/cgsecurity/testdisk / recover_HPFS

Function recover_HPFS

src/hpfs.c:73–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73int recover_HPFS(const disk_t *disk_car, const struct fat_boot_sector *hpfs_header, partition_t *partition, const int verbose)
74{
75 if(test_HPFS(disk_car, hpfs_header, partition, verbose,0)!=0)
76 return 1;
77 set_HPFS_info(partition);
78 partition->part_type_i386=P_HPFS;
79 partition->part_type_gpt=GPT_ENT_TYPE_MAC_HFS;
80 partition->fsname[0]='\0';
81 partition->info[0]='\0';
82 partition->part_size=(uint64_t)(fat_sectors(hpfs_header)>0?fat_sectors(hpfs_header):le32(hpfs_header->total_sect)) *
83 fat_sector_size(hpfs_header);
84 return 0;
85}
86
87int check_HPFS(disk_t *disk_car,partition_t *partition,const int verbose)
88{

Callers 1

search_type_0Function · 0.85

Calls 4

test_HPFSFunction · 0.85
set_HPFS_infoFunction · 0.85
fat_sectorsFunction · 0.85
fat_sector_sizeFunction · 0.85

Tested by

no test coverage detected