Searched refs:dosfs (Results 1 – 4 of 4) sorted by relevance
/third_party/fsck_msdos/ |
D | check.c | 51 int dosfs; in checkfilesys() local 64 dosfs = open(fname, rdonly ? O_RDONLY : O_RDWR, 0); in checkfilesys() 65 if (dosfs < 0 && !rdonly) { in checkfilesys() 66 dosfs = open(fname, O_RDONLY, 0); in checkfilesys() 67 if (dosfs >= 0) in checkfilesys() 75 if (dosfs < 0) { in checkfilesys() 81 if (readboot(dosfs, &boot) == FSFATAL) { in checkfilesys() 82 close(dosfs); in checkfilesys() 87 if (skipclean && preen && checkdirty(dosfs, &boot)) { in checkfilesys() 98 mod |= readfat(dosfs, &boot, &fat); in checkfilesys() [all …]
|
D | boot.c | 48 readboot(int dosfs, struct bootblock *boot) in readboot() argument 54 if ((size_t)read(dosfs, block, sizeof block) != sizeof block) { in readboot() 202 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, in readboot() 204 || read(dosfs, fsinfo, sizeof fsinfo) != sizeof fsinfo) { in readboot() 228 if (lseek(dosfs, boot->bpbFSInfo * in readboot() 231 || write(dosfs, fsinfo, sizeof fsinfo) in readboot() 339 writefsinfo(int dosfs, struct bootblock *boot) in writefsinfo() argument 343 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo() 345 || read(dosfs, fsinfo, sizeof fsinfo) != sizeof fsinfo) { in writefsinfo() 357 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo() [all …]
|
D | dir.c | 1079 int len, dosfs; in reconnect() local 1082 dosfs = fat_get_fd(fat); in reconnect() 1124 if (lseek(dosfs, lfoff, SEEK_SET) != lfoff in reconnect() 1125 || (size_t)read(dosfs, lfbuf, boot->ClusterSize) != boot->ClusterSize) { in reconnect() 1154 if (lseek(dosfs, lfoff, SEEK_SET) != lfoff in reconnect() 1155 || (size_t)write(dosfs, lfbuf, boot->ClusterSize) != boot->ClusterSize) { in reconnect()
|
D | fat.c | 1251 int dosfs, ret; in checklost() local 1255 dosfs = fd_of_(fat); in checklost() 1324 mod |= writefsinfo(dosfs, boot); in checklost()
|