fsP.h File Reference

#include "stream.h"
#include "msdos.h"
#include "fs.h"

Include dependency graph for fsP.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Fs_t

Enumerations

enum  fatAccessMode_t { FAT_ACCESS_READ, FAT_ACCESS_WRITE }

Functions

int fs_free (Stream_t *Stream)
void set_fat12 (Fs_t *Fs)
void set_fat16 (Fs_t *Fs)
void set_fat32 (Fs_t *Fs)
unsigned int get_next_free_cluster (Fs_t *Fs, unsigned int last)
unsigned int fatDecode (Fs_t *This, unsigned int pos)
void fatAppend (Fs_t *This, unsigned int pos, unsigned int newpos)
void fatDeallocate (Fs_t *This, unsigned int pos)
void fatAllocate (Fs_t *This, unsigned int pos, unsigned int value)
void fatEncode (Fs_t *This, unsigned int pos, unsigned int value)
int fat_read (Fs_t *This, struct bootsector *boot, int fat_bits, size_t tot_sectors, int nodups)
void fat_write (Fs_t *This)
int zero_fat (Fs_t *Fs, int media_descriptor)
int fsPreallocateClusters (Fs_t *Fs, long)
Fs_tgetFs (Stream_t *Stream)

Variables

Class_t FsClass


Enumeration Type Documentation

enum fatAccessMode_t
 

Enumerator:
FAT_ACCESS_READ 
FAT_ACCESS_WRITE 

Definition at line 8 of file fsP.h.


Function Documentation

int fat_read Fs_t This,
struct bootsector boot,
int  fat_bits,
size_t  tot_sectors,
int  nodups
 

Definition at line 696 of file fat.c.

References fat_32_read(), Fs_t::fat_dirty, Fs_t::fat_error, Fs_t::fat_len, Fs_t::freeSpace, Fs_t::last, Fs_t::lastFatSectorData, Fs_t::lastFatSectorNr, MAX32, and old_fat_read().

Referenced by fs_init().

void fat_write Fs_t This  ) 
 

Definition at line 373 of file fat.c.

References FatMap_t::dirty, Fs_t::fat_dirty, Fs_t::fat_error, Fs_t::fat_len, Fs_t::fat_start, Fs_t::FatMap, i, j, Fs_t::num_fat, and SECT_PER_ENTRY.

Referenced by fs_flush().

void fatAllocate Fs_t This,
unsigned int  pos,
unsigned int  value
 

Definition at line 743 of file fat.c.

References Fs_t::fat_encode, Fs_t::freeSpace, and MAX32.

Referenced by format_root(), and normal_map().

void fatAppend Fs_t This,
unsigned int  pos,
unsigned int  newpos
 

Definition at line 726 of file fat.c.

References Fs_t::end_fat, Fs_t::fat_encode, Fs_t::freeSpace, and MAX32.

Referenced by normal_map().

void fatDeallocate Fs_t This,
unsigned int  pos
 

Definition at line 735 of file fat.c.

References Fs_t::fat_encode, Fs_t::freeSpace, and MAX32.

Referenced by fat_free().

unsigned int fatDecode Fs_t This,
unsigned int  pos
 

Definition at line 713 of file fat.c.

References Fs_t::fat_decode, Fs_t::fat_error, fprintf(), Fs_t::num_clus, and stderr.

Referenced by _countBlocks(), fat_free(), get_next_free_cluster(), getfree(), getfreeMinClusters(), normal_map(), and printFat().

void fatEncode Fs_t This,
unsigned int  pos,
unsigned int  value
 

Definition at line 750 of file fat.c.

References Fs_t::fat_decode, Fs_t::fat_encode, Fs_t::freeSpace, and MAX32.

int fs_free Stream_t Stream  ) 
 

Definition at line 915 of file fat.c.

References DeclareThis, free, i, and SECT_PER_ENTRY.

int fsPreallocateClusters Fs_t Fs,
long 
 

Definition at line 407 of file init.c.

References getfreeMinClusters().

Referenced by free_file(), and recalcPreallocSize().

unsigned int get_next_free_cluster Fs_t Fs,
unsigned int  last
 

Definition at line 762 of file fat.c.

References fatDecode(), i, Fs_t::last, MAX32, and Fs_t::num_clus.

Referenced by normal_map().

Fs_t* getFs Stream_t Stream  ) 
 

Definition at line 49 of file file.c.

References File_t::Fs, and getUnbufferedFile().

Referenced by dos_doctorfat().

void set_fat12 Fs_t Fs  ) 
 

Definition at line 495 of file fat.c.

References Fs_t::end_fat, fat12_decode(), fat12_encode(), Fs_t::fat_bits, Fs_t::fat_decode, Fs_t::fat_encode, and Fs_t::last_fat.

Referenced by calc_fat_bits2(), old_fat_read(), and xdf_calc_fat_size().

void set_fat16 Fs_t Fs  ) 
 

Definition at line 506 of file fat.c.

References Fs_t::end_fat, fast_fat16_decode(), fast_fat16_encode(), fat16_decode(), fat16_encode(), Fs_t::fat_bits, Fs_t::fat_decode, Fs_t::fat_encode, and Fs_t::last_fat.

Referenced by calc_fat_bits2(), old_fat_read(), and xdf_calc_fat_size().

void set_fat32 Fs_t Fs  ) 
 

Definition at line 524 of file fat.c.

References Fs_t::end_fat, fast_fat32_decode(), fast_fat32_encode(), fat32_decode(), fat32_encode(), Fs_t::fat_bits, Fs_t::fat_decode, Fs_t::fat_encode, and Fs_t::last_fat.

Referenced by calc_fat_bits2(), calc_fs_parameters_32(), and fat_32_read().

int zero_fat Fs_t Fs,
int  media_descriptor
 

Definition at line 445 of file fat.c.

References Fs_t::fat_bits, Fs_t::fat_len, Fs_t::fat_start, i, j, malloc(), memset(), Fs_t::num_fat, perror(), and Fs_t::sector_size.


Variable Documentation

Class_t FsClass
 

Definition at line 51 of file init.c.

Referenced by fs_init(), getDrive(), GetFs(), and mformat().


Generated on Fri Apr 14 23:04:00 2006 for minix by  doxygen 1.4.6