Searched refs:dosfs (Results 1 - 4 of 4) sorted by relevance
/third_party/FreeBSD/sbin/fsck_msdosfs/ |
H A D | check.c | 49 int dosfs; in checkfilesys() local 62 dosfs = open(fname, rdonly ? O_RDONLY : O_RDWR, 0); in checkfilesys() 63 if (dosfs < 0 && !rdonly) { in checkfilesys() 64 dosfs = open(fname, O_RDONLY, 0); in checkfilesys() 65 if (dosfs >= 0) in checkfilesys() 73 if (dosfs < 0) { in checkfilesys() 79 if (readboot(dosfs, &boot) == FSFATAL) { in checkfilesys() 80 close(dosfs); in checkfilesys() 85 if (skipclean && preen && checkdirty(dosfs, &boot)) { in checkfilesys() 96 mod |= readfat(dosfs, in checkfilesys() [all...] |
H A D | boot.c | 46 readboot(int dosfs, struct bootblock *boot) in readboot() argument 52 if ((size_t)read(dosfs, block, sizeof block) != sizeof block) { in readboot() 200 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, in readboot() 202 || read(dosfs, fsinfo, sizeof fsinfo) != sizeof fsinfo) { in readboot() 226 if (lseek(dosfs, boot->bpbFSInfo * in readboot() 229 || write(dosfs, fsinfo, sizeof fsinfo) in readboot() 337 writefsinfo(int dosfs, struct bootblock *boot) in writefsinfo() argument 341 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo() 343 || read(dosfs, fsinfo, sizeof fsinfo) != sizeof fsinfo) { in writefsinfo() 355 if (lseek(dosfs, boo in writefsinfo() [all...] |
H A D | dir.c | 1077 int len, dosfs; in reconnect() local 1080 dosfs = fat_get_fd(fat); in reconnect() 1122 if (lseek(dosfs, lfoff, SEEK_SET) != lfoff in reconnect() 1123 || (size_t)read(dosfs, lfbuf, boot->ClusterSize) != boot->ClusterSize) { in reconnect() 1152 if (lseek(dosfs, lfoff, SEEK_SET) != lfoff in reconnect() 1153 || (size_t)write(dosfs, lfbuf, boot->ClusterSize) != boot->ClusterSize) { in reconnect()
|
H A D | fat.c | 1249 int dosfs, ret; in checklost() local 1253 dosfs = fd_of_(fat); in checklost() 1322 mod |= writefsinfo(dosfs, boot); in checklost()
|
Completed in 4 milliseconds