Lines Matching refs:dosfs
51 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
284 int dosfs; in writefsinfo()
289 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET)
291 || read(dosfs, fsinfo, sizeof fsinfo) != sizeof fsinfo) {
303 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET)
305 || write(dosfs, fsinfo, sizeof fsinfo)