Home
last modified time | relevance | path

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

/third_party/uapp/fsck-msdosfs/
A Dcheck.c38 int dosfs; in checkfilesys() local
51 if (dosfs < 0 && !rdonly) { in checkfilesys()
52 dosfs = open(fname, O_RDONLY, 0); in checkfilesys()
53 if (dosfs >= 0) in checkfilesys()
61 if (dosfs < 0) { in checkfilesys()
67 if (readboot(dosfs, &boot) != FSOK) { in checkfilesys()
68 close(dosfs); in checkfilesys()
89 close(dosfs); in checkfilesys()
125 mod |= handleDirTree(dosfs, &boot, fat); in checkfilesys()
132 mod |= checklost(dosfs, &boot, fat); in checkfilesys()
[all …]
A Dboot.c35 readboot(int dosfs, struct bootblock *boot) in readboot() argument
43 if ((size_t)read(dosfs, block, sizeof block) != sizeof block) { in readboot()
95 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, in readboot()
97 || read(dosfs, fsinfo, sizeof fsinfo) != sizeof fsinfo) { in readboot()
121 if (lseek(dosfs, boot->bpbFSInfo * in readboot()
124 || write(dosfs, fsinfo, sizeof fsinfo) in readboot()
142 if (lseek(dosfs, boot->bpbBackup * boot->bpbBytesPerSec, in readboot()
240 if (lseek(dosfs, 0, SEEK_SET) != 0 in readboot()
241 || write(dosfs, block, sizeof block) != sizeof block) { in readboot()
252 writefsinfo(int dosfs, struct bootblock *boot) in writefsinfo() argument
[all …]
A Ddir.c876 handleDirTree(int dosfs, struct bootblock *boot, struct fatEntry *fat) in handleDirTree() argument
880 mod = readDosDirSection(dosfs, boot, fat, rootDir); in handleDirTree()
901 mod |= readDosDirSection(dosfs, boot, fat, dir); in handleDirTree()
917 reconnect(int dosfs, struct bootblock *boot, struct fatEntry *fat, cl_t head) in reconnect() argument
961 if (lseek(dosfs, lfoff, SEEK_SET) != lfoff in reconnect()
962 || (size_t)read(dosfs, lfbuf, boot->ClusterSize) != boot->ClusterSize) { in reconnect()
992 if (lseek(dosfs, lfoff, SEEK_SET) != lfoff in reconnect()
993 || (size_t)write(dosfs, lfbuf, boot->ClusterSize) != boot->ClusterSize) { in reconnect()
A Dfat.c660 checklost(int dosfs, struct bootblock *boot, struct fatEntry *fat) in checklost() argument
677 mod |= ret = reconnect(dosfs, boot, fat, head); in checklost()
699 mod |= writefsinfo(dosfs, boot); in checklost()

Completed in 7 milliseconds