Lines Matching defs:fs
59 checkdirty(int fs, struct bootblock *boot)
78 if (lseek(fs, off, SEEK_SET) != off) {
83 if ((size_t)read(fs, buffer, boot->bpbBytesPerSec) !=
156 _readfat(int fs, struct bootblock *boot, u_int no, u_char **buffer)
170 if (lseek(fs, off, SEEK_SET) != off) {
175 if ((size_t)read(fs, *buffer, boot->FATsecs * boot->bpbBytesPerSec)
192 readfat(int fs, struct bootblock *boot, u_int no, struct fatEntry **fp)
202 if (!_readfat(fs, boot, no, &buffer))
550 writefat(int fs, struct bootblock *boot, struct fatEntry *fat, int correct_fat)
600 if (!_readfat(fs, boot, boot->ValidFat >= 0 ? boot->ValidFat :0,
646 if (lseek(fs, off, SEEK_SET) != off
647 || (size_t)write(fs, buffer, fatsz) != fatsz) {