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

Function offset2sector

src/fnctdsk.c:67–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67unsigned int offset2sector(const disk_t *disk_car, const uint64_t offset)
68{
69 return ((offset / disk_car->sector_size) % disk_car->geom.sectors_per_head) + 1;
70}
71
72unsigned int offset2head(const disk_t *disk_car, const uint64_t offset)
73{

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