Home
last modified time | relevance | path

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

/dragonfly/sbin/fsck_msdosfs/
HDcheck.c41 int dosfs; in checkfilesys() local
54 dosfs = open(fname, rdonly ? O_RDONLY : O_RDWR, 0); in checkfilesys()
55 if (dosfs < 0 && !rdonly) { in checkfilesys()
56 dosfs = open(fname, O_RDONLY, 0); in checkfilesys()
57 if (dosfs >= 0) in checkfilesys()
65 if (dosfs < 0) { in checkfilesys()
71 if (readboot(dosfs, &boot) == FSFATAL) { in checkfilesys()
72 close(dosfs); in checkfilesys()
81 mod |= readfat(dosfs, &boot, &fat); in checkfilesys()
83 close(dosfs); in checkfilesys()
[all …]
HDboot.c40 readboot(int dosfs, struct bootblock *boot) in readboot() argument
46 if ((size_t)read(dosfs, block, sizeof block) != sizeof block) { in readboot()
194 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, in readboot()
196 || read(dosfs, fsinfo, sizeof fsinfo) != sizeof fsinfo) { in readboot()
220 if (lseek(dosfs, boot->bpbFSInfo * in readboot()
223 || write(dosfs, fsinfo, sizeof fsinfo) in readboot()
331 writefsinfo(int dosfs, struct bootblock *boot) in writefsinfo() argument
335 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo()
337 || read(dosfs, fsinfo, sizeof fsinfo) != sizeof fsinfo) { in writefsinfo()
349 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo()
[all …]
HDdir.c1086 int len, dosfs; in reconnect() local
1089 dosfs = fat_get_fd(fat); in reconnect()
1131 if (lseek(dosfs, lfoff, SEEK_SET) != lfoff in reconnect()
1132 || (size_t)read(dosfs, lfbuf, boot->ClusterSize) != boot->ClusterSize) { in reconnect()
1161 if (lseek(dosfs, lfoff, SEEK_SET) != lfoff in reconnect()
1162 || (size_t)write(dosfs, lfbuf, boot->ClusterSize) != boot->ClusterSize) { in reconnect()
HDfat.c1161 int dosfs, ret; in checklost() local
1165 dosfs = fd_of_(fat); in checklost()
1234 mod |= writefsinfo(dosfs, boot); in checklost()
/dragonfly/stand/lib/
HDMakefile114 SRCS+= dosfs.c ext2fs.c