Can anyone explain why OS blocks were written while I wrote to the FAT part.
--
Steve Maillet
EmbeddedFusion
smai...@EmbeddedFusion.com
BOOL FMD_WriteSector(SECTOR_ADDR startSectorAddr, LPBYTE pSectorBuff,
PSectorInfo pSectorInfoBuff,DWORD dwNumSectors)
{
DWORD blockID;
blockID = SECTOR_TO_BLOCK(startSectorAddr); //get the block number to
write
if ( (blockID >= MBR_BLOCK) && (blockID < IMAGE_START_BLOCK) ) //MBR blocks
{
RETAILMSG(1, (TEXT("FMD_WriteSector() ######## writting MBR blocks
%d!\r\n"), blockID ));
}
else if (blockID < (IMAGE_START_BLOCK + OS_IMAGE_BLOCKS)) //OS blocks
{
RETAILMSG(1, (TEXT("FMD_WriteSector() ######## writting OS blocks
%d!\r\n"), blockID));
}
.......
}
and I really saw messages above outputted when I stored files to FAT part.
Another evidence is that when I store a big file with Explorer ,the system
inform me that the space is not enough . If I choose to continue, the OS
part will be corruptted consequentially.