Lines Matching defs:fat

220 resetDosDirSection(struct fat_descriptor *fat)
227 boot = fat_get_boot(fat);
252 if (!fat_is_cl_head(fat, boot->bpbRootClust)) {
296 delete(struct fat_descriptor *fat, cl_t startcl,
304 boot = fat_get_boot(fat);
305 fd = fat_get_fd(fat);
310 while (fat_is_valid_cl(fat, startcl)) {
341 startcl = fat_get_cl_next(fat, startcl);
348 removede(struct fat_descriptor *fat, u_char *start,
366 if (delete(fat,
386 checksize(struct fat_descriptor *fat, u_char *p, struct dosDirEntry *dir)
393 boot = fat_get_boot(fat);
401 if (!fat_is_valid_cl(fat, dir->head))
403 ret = checkchain(fat, dir->head, &chainsize);
443 cl = fat_get_cl_next(fat, cl);
444 clearchain(fat, fat_get_cl_next(fat, cl));
445 ret = fat_set_cl_next(fat, cl, CLUST_EOF);
462 check_subdirectory(struct fat_descriptor *fat, struct dosDirEntry *dir)
471 boot = fat_get_boot(fat);
472 fd = fat_get_fd(fat);
475 if (dir->parent && !fat_is_valid_cl(fat, cl)) {
534 readDosDirSection(struct fat_descriptor *fat, struct dosDirEntry *dir)
550 boot = fat_get_boot(fat);
551 fd = fat_get_fd(fat);
554 if (dir->parent && (!fat_is_valid_cl(fat, cl))) {
579 mod |= checkchain(fat, dir->head, &dirclusters);
628 if (delete(fat,
757 mod |= removede(fat,
797 mod |= k = removede(fat,
836 ((!fat_is_valid_cl(fat, dirent.head) ||
837 !fat_is_cl_head(fat, dirent.head)))) {
838 if (!fat_is_valid_cl(fat, dirent.head)) {
950 } else if ((check_subdirectory(fat,
986 mod |= k = checksize(fat, p, &dirent);
1008 } while (fat_is_valid_cl(fat, (cl = fat_get_cl_next(fat, cl))));
1010 mod |= removede(fat,
1032 handleDirTree(struct fat_descriptor *fat)
1036 mod = readDosDirSection(fat, rootDir);
1057 mod |= readDosDirSection(fat, dir);
1073 reconnect(struct fat_descriptor *fat, cl_t head, size_t length)
1075 struct bootblock *boot = fat_get_boot(fat);
1080 dosfs = fat_get_fd(fat);
1112 lfcl = p ? fat_get_cl_next(fat, lfcl) : lostDir->head;