Lines Matching refs:fat

216 resetDosDirSection(struct bootblock *boot, struct fatEntry *fat)
251 cl = fat[boot->bpbRootClust].next;
254 || fat[boot->bpbRootClust].head != boot->bpbRootClust) {
265 fat[boot->bpbRootClust].next = CLUST_FREE;
271 fat[boot->bpbRootClust].flags |= FAT_USED;
312 delete(int f, struct bootblock *boot, struct fatEntry *fat, cl_t startcl,
345 startcl = fat[startcl].next;
352 removede(int f, struct bootblock *boot, struct fatEntry *fat, u_char *start,
369 if (delete(f, boot, fat,
389 checksize(struct bootblock *boot, struct fatEntry *fat, u_char *p,
402 physicalSize = fat[dir->head].length * boot->ClusterSize;
425 cl = fat[cl].next;
426 clearchain(boot, fat, fat[cl].next);
427 fat[cl].next = CLUST_EOF;
442 readDosDirSection(int f, struct bootblock *boot, struct fatEntry *fat,
508 if (delete(f, boot, fat,
627 mod |= removede(f, boot, fat,
667 mod |= k = removede(f, boot, fat,
691 clearchain(boot, fat, dirent.head);
706 || fat[dirent.head].next == CLUST_FREE
707 || (fat[dirent.head].next >= CLUST_RSRVD
708 && fat[dirent.head].next < CLUST_EOFS)
709 || fat[dirent.head].head != dirent.head) {
718 else if (fat[dirent.head].next == CLUST_FREE)
721 else if (fat[dirent.head].next >= CLUST_RSRVD)
724 rsrvdcltype(fat[dirent.head].next));
749 fat[dirent.head].flags |= FAT_USED;
840 mod |= k = checksize(boot, fat, p, &dirent);
859 } while ((cl = fat[cl].next) >= CLUST_FIRST && cl < boot->NumClusters);
861 mod |= removede(f, boot, fat,
882 handleDirTree(int dosfs, struct bootblock *boot, struct fatEntry *fat)
886 mod = readDosDirSection(dosfs, boot, fat, rootDir);
907 mod |= readDosDirSection(dosfs, boot, fat, dir);
923 reconnect(int dosfs, struct bootblock *boot, struct fatEntry *fat, cl_t head)
958 lfcl = p ? fat[lfcl].next : lostDir->head;
980 d.size = fat[head].length * boot->ClusterSize;
995 fat[head].flags |= FAT_USED;