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

Function offset2cylinder

src/fnctdsk.c:77–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77unsigned int offset2cylinder(const disk_t *disk_car, const uint64_t offset)
78{
79 return ((offset / disk_car->sector_size) / disk_car->geom.sectors_per_head) / disk_car->geom.heads_per_cylinder;
80}
81
82void offset2CHS(const disk_t *disk_car,const uint64_t offset, CHS_t*CHS)
83{

Callers 15

test_HPFSFunction · 0.85
add_ext_part_i386Function · 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

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