Home
last modified time | relevance | path

Searched refs:fat (Results 1 – 5 of 5) sorted by relevance

/third_party/uapp/fsck-msdosfs/
A Dfat.c140 cl, fat, in checkclnum()
194 struct fatEntry *fat; in readfat() local
206 if (fat == NULL) { in readfat()
305 free(fat); in readfat()
308 *fp = fat; in readfat()
418 q = fat[p].next; in clearchain()
419 fat[p].next = fat[p].head = CLUST_FREE; in clearchain()
420 fat[p].length = 0; in clearchain()
476 fat[head].length = fat[head].next == CLUST_FREE ? 0 : len; in checkfat()
502 ret |= tryclear(boot, fat, head, &fat[p].next); in checkfat()
[all …]
A Dcheck.c40 struct fatEntry *fat = NULL; in checkfilesys() local
87 mod |= readfat(dosfs, &boot, boot.ValidFat >= 0 ? boot.ValidFat : 0, &fat); in checkfilesys()
102 mod |= comparefat(&boot, fat, currentFat, i); in checkfilesys()
111 mod |= checkfat(&boot, fat); in checkfilesys()
119 mod |= resetDosDirSection(&boot, fat); in checkfilesys()
125 mod |= handleDirTree(dosfs, &boot, fat); in checkfilesys()
132 mod |= checklost(dosfs, &boot, fat); in checkfilesys()
139 mod |= writefat(dosfs, &boot, fat, mod & FSFIXFAT); in checkfilesys()
163 mod |= writefat(dosfs, &boot, fat, 1); in checkfilesys()
179 free(fat); in checkfilesys()
A Ddir.c244 cl = fat[boot->bpbRootClust].next; in resetDosDirSection()
338 startcl = fat[startcl].next; in delete()
362 if (delete(f, boot, fat, in removede()
418 cl = fat[cl].next; in checksize()
419 clearchain(boot, fat, fat[cl].next); in checksize()
420 fat[cl].next = CLUST_EOF; in checksize()
421 fat[dir->head].length = len; in checksize()
502 if (delete(f, boot, fat, in readDosDirSection()
621 mod |= removede(f, boot, fat, in readDosDirSection()
855 mod |= removede(f, boot, fat, in readDosDirSection()
[all …]
A Drules.mk16 $(LOCAL_DIR)/fat.c \
/third_party/uapp/mkfs-msdosfs/
A Dmkfs_msdos.c68 #define mincls(fat) ((fat) == 12 ? MINCLS12 : (fat) == 16 ? MINCLS16 : MINCLS32) argument
70 #define maxcls(fat) ((fat) == 12 ? MAXCLS12 : (fat) == 16 ? MAXCLS16 : MAXCLS32) argument
274 fat = 32; in mkfs_msdos()
283 if (fat != 0 && fat != 12 && fat != 16 && fat != 32) { in mkfs_msdos()
363 if (!fat) { in mkfs_msdos()
390 if (fat == 32) { in mkfs_msdos()
428 howmany((RESFTE + maxcls(fat)) * (fat / BPN), in mkfs_msdos()
448 x2 = howmany((RESFTE + MIN(x, maxcls(fat))) * (fat / BPN), in mkfs_msdos()
479 if (fat == 32) in mkfs_msdos()
485 if (fat != 32) { in mkfs_msdos()
[all …]

Completed in 10 milliseconds