Home
last modified time | relevance | path

Searched refs:dosfs (Results 1 – 5 of 5) sorted by relevance

/freebsd/sbin/fsck_msdosfs/
H A Dcheck.c49 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, &boot, &fat); in checkfilesys()
[all …]
H A Dboot.c46 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, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo()
[all …]
H A Ddir.c1090 int len, dosfs; in reconnect() local
1093 dosfs = fat_get_fd(fat); in reconnect()
1135 if (lseek(dosfs, lfoff, SEEK_SET) != lfoff in reconnect()
1136 || (size_t)read(dosfs, lfbuf, boot->ClusterSize) != boot->ClusterSize) { in reconnect()
1165 if (lseek(dosfs, lfoff, SEEK_SET) != lfoff in reconnect()
1166 || (size_t)write(dosfs, lfbuf, boot->ClusterSize) != boot->ClusterSize) { in reconnect()
H A Dfat.c1249 int dosfs, ret; in checklost() local
1253 dosfs = fd_of_(fat); in checklost()
1322 mod |= writefsinfo(dosfs, boot); in checklost()
/freebsd/stand/libsa/
H A DMakefile137 SRCS+= dosfs.c ext2fs.c