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

Function check_FATX

src/fatx.c:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41int check_FATX(disk_t *disk_car,partition_t *partition)
42{
43 unsigned char buffer[8*DEFAULT_SECTOR_SIZE];
44 if(disk_car->pread(disk_car, &buffer, sizeof(buffer), partition->part_offset) != sizeof(buffer))
45 { return 1; }
46 if(test_fatx((const struct disk_fatx *)&buffer)!=0)
47 return 1;
48 set_FATX_info(partition);
49 return 0;
50}
51
52int recover_FATX(const struct disk_fatx *fatx_block, partition_t *partition)
53{

Callers 2

check_part_noneFunction · 0.85
check_part_xboxFunction · 0.85

Calls 2

test_fatxFunction · 0.85
set_FATX_infoFunction · 0.85

Tested by

no test coverage detected