Home | History | Annotate | Download | only in fsck_msdos

Lines Matching defs:dosfs

47 	int dosfs;
59 dosfs = open(filename, rdonly ? O_RDONLY : O_RDWR, 0);
60 if (dosfs < 0 && !rdonly) {
61 dosfs = open(filename, O_RDONLY, 0);
62 if (dosfs >= 0)
70 if (dosfs < 0) {
75 mod = readboot(dosfs, &boot);
77 close(dosfs);
89 mod |= readfat(dosfs, &boot, boot.ValidFat >= 0 ? boot.ValidFat : 0, &fat);
91 close(dosfs);
99 mod |= readfat(dosfs, &boot, i, &currentFat);
127 mod |= handleDirTree(dosfs, &boot, fat);
134 mod |= checklost(dosfs, &boot, fat);
141 mod |= writefat(dosfs, &boot, fat, mod & FSFIXFAT);
165 mod |= writefat(dosfs, &boot, fat, 1);
182 close(dosfs);