Lines Matching refs:boot
47 struct bootblock boot;
75 if (readboot(dosfs, &boot) != FSOK) {
81 if (skipclean && preen && checkdirty(dosfs, &boot)) {
89 if (boot.ValidFat < 0)
95 mod |= readfat(dosfs, &boot, boot.ValidFat >= 0 ? boot.ValidFat : 0, &fat);
101 if (boot.ValidFat < 0)
102 for (i = 1; i < boot.bpbFATs; i++) {
105 mod |= readfat(dosfs, &boot, i, ¤tFat);
110 mod |= comparefat(&boot, fat, currentFat, i);
119 mod |= checkfat(&boot, fat);
127 mod |= resetDosDirSection(&boot, fat);
133 mod |= handleDirTree(dosfs, &boot, fat);
140 mod |= checklost(dosfs, &boot, fat);
147 mod |= writefat(dosfs, &boot, fat, mod & FSFIXFAT);
154 if (boot.NumBad)
156 boot.NumFiles,
157 boot.NumFree * boot.ClusterSize / 1024, boot.NumFree,
158 boot.NumBad * boot.ClusterSize / 1024, boot.NumBad);
161 boot.NumFiles,
162 boot.NumFree * boot.ClusterSize / 1024, boot.NumFree);
171 mod |= writefat(dosfs, &boot, fat, 1);