Lines Matching refs:dosfs
61 int dosfs; in checkfilesys() local
74 dosfs = open(fname, rdonly ? O_RDONLY : O_RDWR, 0); in checkfilesys()
75 if (dosfs < 0 && !rdonly) { in checkfilesys()
76 dosfs = open(fname, O_RDONLY, 0); in checkfilesys()
77 if (dosfs >= 0) in checkfilesys()
85 if (dosfs < 0) { in checkfilesys()
90 if (readboot(dosfs, &boot) == FSFATAL) { in checkfilesys()
91 close(dosfs); in checkfilesys()
96 if (skipclean && preen && checkdirty(dosfs, &boot)) { in checkfilesys()
115 mod |= readfat(dosfs, &boot, boot.ValidFat >= 0 ? boot.ValidFat : 0, &fat); in checkfilesys()
118 close(dosfs); in checkfilesys()
126 mod |= readfat(dosfs, &boot, i, ¤tFat); in checkfilesys()
162 mod |= handleDirTree(dosfs, &boot, fat); in checkfilesys()
169 mod |= checklost(dosfs, &boot, fat); in checkfilesys()
176 mod |= writefat(dosfs, &boot, fat, mod & FSFIXFAT); in checkfilesys()
202 mod |= writefat(dosfs, &boot, fat, 1); in checkfilesys()
219 close(dosfs); in checkfilesys()