Home | History | Annotate | Download | only in fsck_msdos

Lines Matching refs:fat

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