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

Function offset2head

src/fnctdsk.c:72–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72unsigned int offset2head(const disk_t *disk_car, const uint64_t offset)
73{
74 return ((offset / disk_car->sector_size) / disk_car->geom.sectors_per_head) % disk_car->geom.heads_per_cylinder;
75}
76
77unsigned int offset2cylinder(const disk_t *disk_car, const uint64_t offset)
78{

Callers 15

test_HPFSFunction · 0.85
test_VMFSFunction · 0.85
test_LVMFunction · 0.85
test_LVM2Function · 0.85
aff_part_auxFunction · 0.85
test_ZFSFunction · 0.85
file_pread_auxFunction · 0.85
file_pwrite_auxFunction · 0.85
file_nopwriteFunction · 0.85
test_JFSFunction · 0.85
recover_APFSFunction · 0.85
recover_EXT2Function · 0.85

Calls

no outgoing calls

Tested by 15

test_HPFSFunction · 0.68
test_VMFSFunction · 0.68
test_LVMFunction · 0.68
test_LVM2Function · 0.68
test_ZFSFunction · 0.68
test_JFSFunction · 0.68
test_NTFSFunction · 0.68
test_rfsFunction · 0.68
test_rfs4Function · 0.68
test_sysv4Function · 0.68
test_ufsFunction · 0.68
test_BeFSFunction · 0.68