#if 0
//备注:本函数假定BytePerSector为512字节。
ulong mLinkCluster(ulong ulCurrent_Cluster)
{
unsigned long ulResult;
unsigned int uiOffset; //扇区内的偏移量
unsigned long fatOffset;
unsigned long sector;
uchar data *ucTemp;
// unsigned int offset;
优化后的簇链查找函数:
#if 1
//直接在FAT表中查找链接簇
ulong mLinkCluster(ulong ulCurrent_Cluster)
{
unsigned long ulResult;
unsigned int uiOffset; //扇区内的偏移量
unsigned long fatOffset;
unsigned long sector;
uchar data *ucTemp;
// unsigned int offset;
uint32 idata LastFatLba=0xFFFFFFFF;
//备注:本函数假定BytePerSector为512字节。
uint FastLinkCluster(uint ulCurrent_Cluster)
{
unsigned int ulResult;
unsigned int uiOffset; //扇区内的偏移量
unsigned int fatOffset;
unsigned long sector;
// unsigned int offset;