Home
last modified time | relevance | path

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

/external/fsck_msdos/
Dcheck.c61 int dosfs; in checkfilesys() local
74 dosfs = open(fname, rdonly ? O_RDONLY : O_RDWR, 0); in checkfilesys()
75 if (dosfs < 0 && !rdonly) { in checkfilesys()
76 dosfs = open(fname, O_RDONLY, 0); in checkfilesys()
77 if (dosfs >= 0) in checkfilesys()
85 if (dosfs < 0) { in checkfilesys()
90 if (readboot(dosfs, &boot) == FSFATAL) { in checkfilesys()
91 close(dosfs); in checkfilesys()
96 if (skipclean && preen && checkdirty(dosfs, &boot)) { in checkfilesys()
115 mod |= readfat(dosfs, &boot, boot.ValidFat >= 0 ? boot.ValidFat : 0, &fat); in checkfilesys()
[all …]
Dboot.c51 readboot(dosfs, boot) in readboot() argument
52 int dosfs; in readboot()
60 if (read(dosfs, block, sizeof block) < sizeof block) {
128 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET)
130 || read(dosfs, fsinfo, sizeof fsinfo)
155 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET)
157 || write(dosfs, fsinfo, sizeof fsinfo)
175 if (lseek(dosfs, boot->Backup * boot->BytesPerSec, SEEK_SET)
177 || read(dosfs, backup, sizeof backup) != sizeof backup) {
283 writefsinfo(dosfs, boot) in writefsinfo() argument
[all …]
Ddir.c978 handleDirTree(int dosfs, struct bootblock *boot, struct fatEntry *fat) in handleDirTree() argument
982 mod = readDosDirSection(dosfs, boot, fat, rootDir); in handleDirTree()
1003 mod |= readDosDirSection(dosfs, boot, fat, dir); in handleDirTree()
1019 reconnect(int dosfs, struct bootblock *boot, struct fatEntry *fat, cl_t head) in reconnect() argument
1063 if (lseek64(dosfs, lfoff, SEEK_SET) != lfoff in reconnect()
1064 || read(dosfs, lfbuf, boot->ClusterSize) != boot->ClusterSize) { in reconnect()
1093 if (lseek64(dosfs, lfoff, SEEK_SET) != lfoff in reconnect()
1094 || write(dosfs, lfbuf, boot->ClusterSize) != boot->ClusterSize) { in reconnect()
Dfat.c661 checklost(int dosfs, struct bootblock *boot, struct fatEntry *fat) in checklost() argument
678 mod |= ret = reconnect(dosfs, boot, fat, head); in checklost()
738 mod |= writefsinfo(dosfs, boot); in checklost()