Home | History | Annotate | Download | only in fsck_msdos

Lines Matching full:dosfs

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