Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 250 of file id_badblock.cpp.
Referenced by AtaCommand48(), and UniataAhciSetupFIS_H2D().
{ if (LunExt->nBadBlocks == 0) return false; /* // this is checked by caller if(!(AtaCommandFlags[command] & ATA_CMD_FLAG_LBAsupp)) { return false; */ ULONG nBadBlocks = LunExt->nBadBlocks; SBadBlockRange* arrBadBlocks = LunExt->arrBadBlocks; // back transform for possibly CHS'ed LBA lba = UniAtaCalculateLBARegsBack(LunExt, lba); for (ULONG i = 0; i < nBadBlocks; i++) { if (lba + count > arrBadBlocks->m_lbaStart && lba < arrBadBlocks->m_lbaEnd) { KdPrint(( "listed BB @ %I64x\n", lba)); return true; } arrBadBlocks++; } return false; } // end CheckIfBadBlock()