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

Function recover_VMFS

src/vmfs.c:77–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77int 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}

Callers 1

search_type_2048Function · 0.85

Calls 2

test_VMFSFunction · 0.85
set_VMFS_infoFunction · 0.85

Tested by

no test coverage detected