| 71 | } |
| 72 | |
| 73 | int 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 | |
| 87 | int check_HPFS(disk_t *disk_car,partition_t *partition,const int verbose) |
| 88 | { |
no test coverage detected