Searched refs:dosfs (Results 1 – 4 of 4) sorted by relevance
/external/fsck_msdos/ |
D | check.c | 48 int dosfs; in checkfilesys() local 60 dosfs = open(fname, rdonly ? O_RDONLY : O_RDWR, 0); in checkfilesys() 61 if (dosfs < 0 && !rdonly) { in checkfilesys() 62 dosfs = open(fname, O_RDONLY, 0); in checkfilesys() 63 if (dosfs >= 0) in checkfilesys() 71 if (dosfs < 0) { in checkfilesys() 77 if (readboot(dosfs, &boot) == FSFATAL) { in checkfilesys() 78 close(dosfs); in checkfilesys() 83 if (skipclean && preen && checkdirty(dosfs, &boot)) { in checkfilesys() 97 mod |= readfat(dosfs, &boot, boot.ValidFat >= 0 ? boot.ValidFat : 0, &fat); in checkfilesys() [all …]
|
D | boot.c | 45 readboot(int dosfs, struct bootblock *boot) in readboot() argument 53 if ((size_t)read(dosfs, block, sizeof block) != sizeof block) { in readboot() 130 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, in readboot() 132 || read(dosfs, fsinfo, sizeof fsinfo) != sizeof fsinfo) { in readboot() 156 if (lseek(dosfs, boot->bpbFSInfo * in readboot() 159 || write(dosfs, fsinfo, sizeof fsinfo) in readboot() 177 if (lseek(dosfs, boot->bpbBackup * boot->bpbBytesPerSec, in readboot() 180 || read(dosfs, backup, sizeof backup) != sizeof backup) { in readboot() 260 writefsinfo(int dosfs, struct bootblock *boot) in writefsinfo() argument 264 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo() [all …]
|
D | dir.c | 886 handleDirTree(int dosfs, struct bootblock *boot, struct fatEntry *fat) in handleDirTree() argument 890 mod = readDosDirSection(dosfs, boot, fat, rootDir); in handleDirTree() 911 mod |= readDosDirSection(dosfs, boot, fat, dir); in handleDirTree() 927 reconnect(int dosfs, struct bootblock *boot, struct fatEntry *fat, cl_t head) in reconnect() argument 971 if (lseek(dosfs, lfoff, SEEK_SET) != lfoff in reconnect() 972 || (size_t)read(dosfs, lfbuf, boot->ClusterSize) != boot->ClusterSize) { in reconnect() 1002 if (lseek(dosfs, lfoff, SEEK_SET) != lfoff in reconnect() 1003 || (size_t)write(dosfs, lfbuf, boot->ClusterSize) != boot->ClusterSize) { in reconnect()
|
D | fat.c | 670 checklost(int dosfs, struct bootblock *boot, struct fatEntry *fat) in checklost() argument 687 mod |= ret = reconnect(dosfs, boot, fat, head); in checklost() 709 mod |= writefsinfo(dosfs, boot); in checklost()
|