Lines Matching refs:fat
224 resetDosDirSection(struct bootblock *boot, struct fatEntry *fat) in resetDosDirSection() argument
246 cl = fat[boot->RootCl].next; in resetDosDirSection()
249 || fat[boot->RootCl].head != boot->RootCl) { in resetDosDirSection()
260 fat[boot->RootCl].next = CLUST_FREE; in resetDosDirSection()
266 fat[boot->RootCl].flags |= FAT_USED; in resetDosDirSection()
307 delete(int f, struct bootblock *boot, struct fatEntry *fat, cl_t startcl, in delete() argument
348 startcl = fat[startcl].next; in delete()
355 removede(int f, struct bootblock *boot, struct fatEntry *fat, u_char *start, in removede() argument
371 if (delete(f, boot, fat, in removede()
390 checksize(struct bootblock *boot, struct fatEntry *fat, u_char *p, in checksize() argument
403 physicalSize = fat[dir->head].length * boot->ClusterSize; in checksize()
425 cl = fat[cl].next; in checksize()
426 clearchain(boot, fat, fat[cl].next); in checksize()
427 fat[cl].next = CLUST_EOF; in checksize()
443 check_dot_dot(int f, struct bootblock *boot, struct fatEntry *fat,struct dosDirEntry *dir) in check_dot_dot() argument
505 } while ((cl = fat[cl].next) >= CLUST_FIRST && cl < boot->NumClusters); in check_dot_dot()
525 readDosDirSection(int f, struct bootblock *boot, struct fatEntry *fat, in readDosDirSection() argument
596 if (delete(f, boot, fat, in readDosDirSection()
714 mod |= removede(f, boot, fat, in readDosDirSection()
753 mod |= k = removede(f, boot, fat, in readDosDirSection()
777 clearchain(boot, fat, dirent.head); in readDosDirSection()
792 || fat[dirent.head].next == CLUST_FREE in readDosDirSection()
793 || (fat[dirent.head].next >= CLUST_RSRVD in readDosDirSection()
794 && fat[dirent.head].next < CLUST_EOFS) in readDosDirSection()
795 || fat[dirent.head].head != dirent.head) { in readDosDirSection()
804 else if (fat[dirent.head].next == CLUST_FREE) in readDosDirSection()
807 else if (fat[dirent.head].next >= CLUST_RSRVD) in readDosDirSection()
810 rsrvdcltype(fat[dirent.head].next)); in readDosDirSection()
835 fat[dirent.head].flags |= FAT_USED; in readDosDirSection()
921 if (check_dot_dot(f,boot,fat,&dirent)) { in readDosDirSection()
953 mod |= k = checksize(boot, fat, p, &dirent); in readDosDirSection()
968 } while ((cl = fat[cl].next) >= CLUST_FIRST && cl < boot->NumClusters); in readDosDirSection()
970 mod |= removede(f, boot, fat, in readDosDirSection()
978 handleDirTree(int dosfs, struct bootblock *boot, struct fatEntry *fat) in handleDirTree() argument
982 mod = readDosDirSection(dosfs, boot, fat, rootDir); in handleDirTree()
1003 mod |= readDosDirSection(dosfs, boot, fat, dir); in handleDirTree()
1019 reconnect(int dosfs, struct bootblock *boot, struct fatEntry *fat, cl_t head) in reconnect() argument
1054 lfcl = p ? fat[lfcl].next : lostDir->head; in reconnect()
1077 d.size = fat[head].length * boot->ClusterSize; in reconnect()
1092 fat[head].flags |= FAT_USED; in reconnect()