| 1130 | } |
| 1131 | |
| 1132 | int recover_OS2MB(const disk_t *disk, const struct fat_boot_sector*fat_header, partition_t *partition, const int verbose, const int dump_ind) |
| 1133 | { |
| 1134 | if(test_OS2MB(disk, fat_header, partition, verbose, dump_ind)) |
| 1135 | return 1; |
| 1136 | /* 1 cylinder */ |
| 1137 | partition->upart_type=UP_OS2MB; |
| 1138 | partition->part_size=(uint64_t)disk->geom.heads_per_cylinder * disk->geom.sectors_per_head * disk->sector_size; |
| 1139 | partition->part_type_i386=P_OS2MB; |
| 1140 | partition->fsname[0]='\0'; |
| 1141 | partition->info[0]='\0'; |
| 1142 | return 0; |
| 1143 | } |
| 1144 | |
| 1145 | int is_fat(const partition_t *partition) |
| 1146 | { |
no test coverage detected