Lines Matching defs:fat

216 resetDosDirSection(struct bootblock *boot, struct fatEntry *fat)
252 cl = fat[boot->bpbRootClust].next;
255 || fat[boot->bpbRootClust].head != boot->bpbRootClust) {
266 fat[boot->bpbRootClust].next = CLUST_FREE;
272 fat[boot->bpbRootClust].flags |= FAT_USED;
313 delete(int f, struct bootblock *boot, struct fatEntry *fat, cl_t startcl,
346 startcl = fat[startcl].next;
353 removede(int f, struct bootblock *boot, struct fatEntry *fat, u_char *start,
370 if (delete(f, boot, fat,
390 checksize(struct bootblock *boot, struct fatEntry *fat, u_char *p,
403 physicalSize = fat[dir->head].length * boot->ClusterSize;
426 cl = fat[cl].next;
427 clearchain(boot, fat, fat[cl].next);
428 fat[cl].next = CLUST_EOF;
429 fat[dir->head].length = len;
444 readDosDirSection(int f, struct bootblock *boot, struct fatEntry *fat,
510 if (delete(f, boot, fat,
629 mod |= removede(f, boot, fat,
669 mod |= k = removede(f, boot, fat,
693 clearchain(boot, fat, dirent.head);
708 || fat[dirent.head].next == CLUST_FREE
709 || (fat[dirent.head].next >= CLUST_RSRVD
710 && fat[dirent.head].next < CLUST_EOFS)
711 || fat[dirent.head].head != dirent.head) {
720 else if (fat[dirent.head].next == CLUST_FREE)
723 else if (fat[dirent.head].next >= CLUST_RSRVD)
726 rsrvdcltype(fat[dirent.head].next));
751 fat[dirent.head].flags |= FAT_USED;
842 mod |= k = checksize(boot, fat, p, &dirent);
861 } while ((cl = fat[cl].next) >= CLUST_FIRST && cl < boot->NumClusters);
863 mod |= removede(f, boot, fat,
884 handleDirTree(int dosfs, struct bootblock *boot, struct fatEntry *fat)
888 mod = readDosDirSection(dosfs, boot, fat, rootDir);
909 mod |= readDosDirSection(dosfs, boot, fat, dir);
925 reconnect(int dosfs, struct bootblock *boot, struct fatEntry *fat, cl_t head)
961 lfcl = p ? fat[lfcl].next : lostDir->head;
984 d.size = fat[head].length * boot->ClusterSize;
999 fat[head].flags |= FAT_USED;