void setPartErrorSector(u32 device, u32 lba) {// used to set the lba of a partition that has a error... apa_cache *clink; clink=cacheGetFree(); apaSaveError(device, clink->header, APA_SECTOR_PART_ERROR, lba); cacheAdd(clink); }
void apaSetPartErrorSector(s32 device, u32 lba) { // used to set the lba of a partition that has a error... apa_cache_t *clink; clink = apaCacheAlloc(); apaSaveError(device, clink->header, APA_SECTOR_PART_ERROR, lba); apaCacheFree(clink); }