Searched refs:dosfs (Results 1 – 5 of 5) sorted by relevance
| /mirbsd/src/sbin/fsck_msdos/ |
| D | check.c | 53 int dosfs; in checkfilesys() local 63 dosfs = open(fname, rdonly ? O_RDONLY : O_RDWR, 0); in checkfilesys() 64 if (dosfs < 0 && !rdonly) { in checkfilesys() 65 dosfs = open(fname, O_RDONLY, 0); in checkfilesys() 66 if (dosfs >= 0) in checkfilesys() 74 if (dosfs < 0) { in checkfilesys() 79 if (readboot(dosfs, &boot) != FSOK) { in checkfilesys() 80 (void)close(dosfs); in checkfilesys() 91 mod |= readfat(dosfs, &boot, boot.ValidFat >= 0 ? boot.ValidFat : 0, &fat); in checkfilesys() 93 (void)close(dosfs); in checkfilesys() [all …]
|
| D | boot.c | 50 readboot(int dosfs, struct bootblock *boot) in readboot() argument 57 if (read(dosfs, block, sizeof block) < sizeof block) { in readboot() 106 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET) in readboot() 108 || read(dosfs, fsinfo, sizeof fsinfo) in readboot() 133 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET) in readboot() 135 || write(dosfs, fsinfo, sizeof fsinfo) in readboot() 153 if (lseek(dosfs, boot->Backup * boot->BytesPerSec, SEEK_SET) in readboot() 155 || read(dosfs, backup, sizeof backup) != sizeof backup) { in readboot() 243 writefsinfo(int dosfs, struct bootblock *boot) in writefsinfo() argument 247 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET) in writefsinfo() [all …]
|
| D | dir.c | 855 handleDirTree(int dosfs, struct bootblock *boot, struct fatEntry *fat) in handleDirTree() argument 859 mod = readDosDirSection(dosfs, boot, fat, rootDir); in handleDirTree() 865 mod |= writefat(dosfs, boot, fat); /* delay writing fats? XXX */ in handleDirTree() 888 mod |= readDosDirSection(dosfs, boot, fat, dir); in handleDirTree() 893 mod |= writefat(dosfs, boot, fat); /* delay writing fats? XXX */ in handleDirTree() 909 reconnect(int dosfs, struct bootblock *boot, struct fatEntry *fat, cl_t head) in reconnect() argument 952 if (lseek(dosfs, lfoff, SEEK_SET) != lfoff in reconnect() 953 || read(dosfs, lfbuf, boot->ClusterSize) != boot->ClusterSize) { in reconnect() 982 if (lseek(dosfs, lfoff, SEEK_SET) != lfoff in reconnect() 983 || write(dosfs, lfbuf, boot->ClusterSize) != boot->ClusterSize) { in reconnect()
|
| D | fat.c | 503 checklost(int dosfs, struct bootblock *boot, struct fatEntry *fat) in checklost() argument 520 mod |= ret = reconnect(dosfs, boot, fat, head); in checklost() 554 mod |= writefsinfo(dosfs, boot); in checklost()
|
| /mirbsd/src/sys/arch/i386/stand/libsa/ |
| D | Makefile | 60 SRCS+= dosfs.c dosfslo.S
|