Changeset 2047 for Whitix

Show
Ignore:
Timestamp:
04/03/09 19:07:29 (3 years ago)
Author:
mwhitworth
Message:

Various fixes for FAT32 support.

Location:
Whitix/trunk/fs/fat
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • Whitix/trunk/fs/fat/file.c

    r1909 r2047  
    105105        while (offset--) 
    106106        { 
    107                 retVal=FatAccess(vNode->superBlock, retVal, -1); 
     107                retVal = FatAccess(vNode->superBlock, retVal, -1); 
     108                 
    108109                if (retVal >= fatSbInfo->invalidCluster) 
    109110                { 
  • Whitix/trunk/fs/fat/vnode.c

    r1911 r2047  
    170170{ 
    171171        struct FatSbInfo* sbInfo=FatGetSbPriv(superBlock); 
     172         
     173        if (sbInfo->fatType == 32 && start == 0) 
     174                start = sbInfo->rootDirStart; 
     175         
    172176        if (sbInfo->fatType != 32 && start == sbInfo->rootDirStart) 
    173177                return FatScanDirRootRaw(superBlock,start,name,retVal,vNum,wantedStart); 
     
    219223 
    220224        err=FatScanDirRaw(dir->superBlock,startCluster,FAT_DOTDOT,NULL,NULL,&gpCluster); 
     225         
    221226        if (err) 
    222227                return err;