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

Function get_location_boundary

src/godmode.c:85–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83/* Optimization end */
84
85static unsigned int get_location_boundary(const disk_t *disk)
86{
87 if(disk->arch==&arch_mac)
88 return 4096;
89 else if(disk->arch==&arch_sun)
90 return disk->geom.heads_per_cylinder * disk->geom.sectors_per_head * disk->sector_size;
91 return disk->sector_size;
92}
93
94static unsigned int align_structure_aux(const uint64_t offset, const disk_t *disk)
95{

Callers 2

align_structureFunction · 0.85
search_partFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected