|
ReactOS 0.4.16-dev-1946-g52006dd
|

Go to the source code of this file.
Classes | |
| struct | _FAT_VOLUME_INFO |
| struct | _DIRECTORY_BUFFER |
Macros | |
| #define | FAT_IS_END_CLUSTER(clnumber) |
| #define | TAG_FAT_CHAIN 'CtaT' |
| #define | TAG_FAT_FILE 'FtaF' |
| #define | TAG_FAT_VOLUME 'VtaF' |
| #define | TAG_FAT_BUFFER 'BtaF' |
| #define | TAG_FAT_CACHE 'HtaF' |
| #define | FAT_MAX_CACHE_SIZE (256 * 1024) |
Typedefs | |
| typedef struct _FAT_VOLUME_INFO | FAT_VOLUME_INFO |
| typedef struct _DIRECTORY_BUFFER | DIRECTORY_BUFFER |
| typedef struct _DIRECTORY_BUFFER * | PDIRECTORY_BUFFER |
Variables | |
| PFAT_VOLUME_INFO | FatVolumes [MAX_FDS] |
| LIST_ENTRY | DirectoryBufferListHead = {&DirectoryBufferListHead, &DirectoryBufferListHead} |
| const DEVVTBL | FatFuncTable |
| const DEVVTBL | FatXFuncTable |
| #define FAT_IS_END_CLUSTER | ( | clnumber | ) |
| typedef struct _DIRECTORY_BUFFER DIRECTORY_BUFFER |
| typedef struct _FAT_VOLUME_INFO FAT_VOLUME_INFO |
| typedef struct _DIRECTORY_BUFFER * PDIRECTORY_BUFFER |
| DBG_DEFAULT_CHANNEL | ( | FILESYSTEM | ) |
| PVOID FatBufferDirectory | ( | PFAT_VOLUME_INFO | Volume, |
| ULONG | DirectoryStartCluster, | ||
| ULONG * | EntryCountPointer, | ||
| BOOLEAN | RootDirectory | ||
| ) |
Definition at line 462 of file fat.c.
Referenced by FatLookupFile().
| ARC_STATUS FatClose | ( | ULONG | FileId | ) |
Definition at line 1461 of file fat.c.
|
static |
Definition at line 1108 of file fat.c.
Referenced by FatBufferDirectory().
| ULONG FatDetermineFatType | ( | PFAT_BOOTSECTOR | FatBootSector, |
| ULONGLONG | PartitionSectorCount | ||
| ) |
Definition at line 396 of file fat.c.
Referenced by FatOpenVolume().
|
static |
Definition at line 1018 of file fat.c.
Referenced by FatCountClustersInChain(), FatReadAdjacentClusters(), FatReadFile(), and FatSeek().
|
static |
Reads 1-4 sectors from FAT using the cache.
Definition at line 980 of file fat.c.
Referenced by FatGetFatEntry().
| ARC_STATUS FatGetFileInformation | ( | ULONG | FileId, |
| FILEINFORMATION * | Information | ||
| ) |
Definition at line 1470 of file fat.c.
Returns the size of the FAT volume laid on the storage media device opened via DeviceId.
Definition at line 1616 of file fat.c.
Referenced by FsGetVolumeSize().
| ARC_STATUS FatLookupFile | ( | PFAT_VOLUME_INFO | Volume, |
| PCSTR | FileName, | ||
| PFAT_FILE_INFO | FatFileInfoPointer | ||
| ) |
Definition at line 818 of file fat.c.
Referenced by FatOpen().
Definition at line 1645 of file fat.c.
| FORCEINLINE ULONG FatNumberOfClusters | ( | _In_ PFAT_VOLUME_INFO | Volume | ) |
Returns the number of clusters of the data area of the FAT volume. This value is computed by taking the total sectors on the disk, subtracting up to the first file area sector, then dividing by the sectors per cluster count.
| ARC_STATUS FatOpen | ( | CHAR * | Path, |
| OPENMODE | OpenMode, | ||
| ULONG * | FileId | ||
| ) |
Definition at line 1492 of file fat.c.
| BOOLEAN FatOpenVolume | ( | PFAT_VOLUME_INFO | Volume, |
| PFAT_BOOTSECTOR | BootSector, | ||
| ULONGLONG | PartitionSectorCount | ||
| ) |
Definition at line 160 of file fat.c.
Referenced by FatMount().
Definition at line 933 of file fat.c.
Referenced by FatSearchDirectoryBufferForFile().
| ARC_STATUS FatRead | ( | ULONG | FileId, |
| VOID * | Buffer, | ||
| ULONG | N, | ||
| ULONG * | Count | ||
| ) |
Definition at line 1534 of file fat.c.
|
static |
Definition at line 1144 of file fat.c.
Referenced by FatReadClusterChain().
|
static |
Definition at line 1192 of file fat.c.
Referenced by FatBufferDirectory(), and FatReadFile().
|
static |
Definition at line 1263 of file fat.c.
Referenced by FatRead().
| BOOLEAN FatReadPartialCluster | ( | PFAT_VOLUME_INFO | Volume, |
| ULONG | ClusterNumber, | ||
| ULONG | StartingOffset, | ||
| ULONG | Length, | ||
| PVOID | Buffer | ||
| ) |
Definition at line 1219 of file fat.c.
Referenced by FatReadFile().
| BOOLEAN FatReadVolumeSectors | ( | PFAT_VOLUME_INFO | Volume, |
| ULONG | SectorNumber, | ||
| ULONG | SectorCount, | ||
| PVOID | Buffer | ||
| ) |
Definition at line 1427 of file fat.c.
Referenced by FatBufferDirectory(), FatGetFatSector(), FatOpenVolume(), FatReadAdjacentClusters(), and FatReadPartialCluster().
|
static |
Definition at line 549 of file fat.c.
Referenced by FatLookupFile().
| ARC_STATUS FatSeek | ( | ULONG | FileId, |
| LARGE_INTEGER * | Position, | ||
| SEEKMODE | SeekMode | ||
| ) |
Definition at line 1547 of file fat.c.
Definition at line 103 of file fat.c.
Referenced by FatSearchDirectoryBufferForFile().
| VOID FatSwapFat32BootSector | ( | PFAT32_BOOTSECTOR | Obj | ) |
| VOID FatSwapFatBootSector | ( | PFAT_BOOTSECTOR | Obj | ) |
| VOID FatSwapFatXBootSector | ( | PFATX_BOOTSECTOR | Obj | ) |
| VOID FatSwapFatXDirEntry | ( | PFATX_DIRENTRY | Obj | ) |
| VOID FatSwapLFNDirEntry | ( | PLFN_DIRENTRY | Obj | ) |
|
static |
Definition at line 755 of file fat.c.
Referenced by FatLookupFile().
| LIST_ENTRY DirectoryBufferListHead = {&DirectoryBufferListHead, &DirectoryBufferListHead} |
Definition at line 460 of file fat.c.
Referenced by FatBufferDirectory().
Definition at line 1625 of file fat.c.
Referenced by FatMount().
| PFAT_VOLUME_INFO FatVolumes[MAX_FDS] |
Definition at line 59 of file fat.c.
Referenced by FatGetVolumeSize(), FatMount(), and FatOpen().