fatEntry
struct fatEntry *currentFat;
struct fatEntry *fat = NULL;
resetDosDirSection(struct bootblock *boot, struct fatEntry *fat)
delete(int f, struct bootblock *boot, struct fatEntry *fat, cl_t startcl,
removede(int f, struct bootblock *boot, struct fatEntry *fat, u_char *start,
checksize(struct bootblock *boot, struct fatEntry *fat, u_char *p,
readDosDirSection(int f, struct bootblock *boot, struct fatEntry *fat,
handleDirTree(int dosfs, struct bootblock *boot, struct fatEntry *fat)
static int delete(int, struct bootblock *, struct fatEntry *, cl_t, int,
static int removede(int, struct bootblock *, struct fatEntry *, u_char *,
reconnect(int dosfs, struct bootblock *boot, struct fatEntry *fat, cl_t head)
static int checksize(struct bootblock *, struct fatEntry *, u_char *,
static int readDosDirSection(int, struct bootblock *, struct fatEntry *,
int writefat(int, struct bootblock *, struct fatEntry *);
int resetDosDirSection(struct bootblock *, struct fatEntry *);
int handleDirTree(int, struct bootblock *, struct fatEntry *);
int checklost(int, struct bootblock *, struct fatEntry *);
int reconnect(int, struct bootblock *, struct fatEntry *, cl_t);
void clearchain(struct bootblock *, struct fatEntry *, cl_t);
int readfat(int, struct bootblock *, int, struct fatEntry **);
int comparefat(struct bootblock *, struct fatEntry *, struct fatEntry *, int);
int checkfat(struct bootblock *, struct fatEntry *);
comparefat(struct bootblock *boot, struct fatEntry *first,
struct fatEntry *second, int fatnum)
clearchain(struct bootblock *boot, struct fatEntry *fat, cl_t head)
tryclear(struct bootblock *boot, struct fatEntry *fat, cl_t head, cl_t *trunc)
checkfat(struct bootblock *boot, struct fatEntry *fat)
static int tryclear(struct bootblock *, struct fatEntry *, cl_t, cl_t *);
writefat(int fs, struct bootblock *boot, struct fatEntry *fat)
checklost(int dosfs, struct bootblock *boot, struct fatEntry *fat)
readfat(int fs, struct bootblock *boot, int no, struct fatEntry **fp)
struct fatEntry *fat;
fat = calloc(boot->NumClusters, sizeof(struct fatEntry));