| 75 | } |
| 76 | |
| 77 | int recover_VMFS(const disk_t *disk, const struct vmfs_volume *sb, partition_t *partition, const int verbose, const int dump_ind) |
| 78 | { |
| 79 | const struct vmfs_lvm* lvm=(const struct vmfs_lvm*)(((const char *)sb)+0x200); |
| 80 | if(test_VMFS(disk, sb, partition, dump_ind)!=0) |
| 81 | return 1; |
| 82 | if(partition==NULL) |
| 83 | return 0; |
| 84 | set_VMFS_info(sb, partition); |
| 85 | partition->part_type_i386=P_VMFS; |
| 86 | partition->part_size=(uint64_t)le64(lvm->size); |
| 87 | partition->blocksize=0; |
| 88 | partition->sborg_offset=0; |
| 89 | partition->sb_offset=0; |
| 90 | if(verbose>0) |
| 91 | { |
| 92 | log_info("\n"); |
| 93 | } |
| 94 | return 0; |
| 95 | } |
no test coverage detected