Show
Ignore:
Timestamp:
02/24/09 20:57:26 (3 years ago)
Author:
mwhitworth
Message:

Add support for keep track of free clusters in a FAT32 filesystem, add WriteSuper function and ReadFsInfo.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/trunk/fs/fat/fat.h

    r1668 r1912  
    125125}PACKED; 
    126126 
     127struct FatFsInfo 
     128{ 
     129        DWORD reserved1; 
     130        DWORD signature; 
     131        DWORD freeClusters; 
     132        DWORD nextCluster; 
     133        DWORD reserved2; 
     134}; 
     135 
    127136struct FatDirEntry 
    128137{ 
     
    155164struct FatSbInfo 
    156165{ 
    157         DWORD fatStart,fatLength,rootDirStart,rootDirLength, rootDirEnts; 
    158         DWORD firstDataSector,totalDataSectors,clusterLength,secsPerClus; 
    159         DWORD fatType,invalidCluster,numFats; 
     166        /* FAT information */ 
     167        DWORD fatStart, fatLength, fatType, invalidCluster, numFats; 
     168         
     169        /* Root directory information */ 
     170        DWORD rootDirStart, rootDirLength, rootDirEnts; 
     171         
     172        /* Data sector and cluster layout */ 
     173        DWORD firstDataSector,totalDataSectors, clusterLength, secsPerClus; 
     174         
     175        /* Values that are only updated on FAT32 */ 
     176        DWORD freeClusters, fsInfoSector; 
    160177}; 
    161178