Lines Matching refs:fs
74 checkdirty(int fs, struct bootblock *boot)
92 if (lseek(fs, off, SEEK_SET) != off) {
97 if (read(fs, buffer, boot->BytesPerSec) != boot->BytesPerSec) {
169 _readfat(int fs, struct bootblock *boot, int no, u_char **buffer)
185 if (lseek(fs, off, SEEK_SET) != off) {
190 if (read(fs, *buffer, boot->FATsecs * boot->BytesPerSec)
207 readfat(int fs, struct bootblock *boot, int no, struct fatEntry **fp)
216 if (!_readfat(fs, boot, no, &buffer))
544 writefat(int fs, struct bootblock *boot, struct fatEntry *fat, int correct_fat)
594 if (!_readfat(fs, boot, boot->ValidFat >= 0 ? boot->ValidFat :0,
638 if (lseek(fs
639 || write(fs, buffer, fatsz) != fatsz) {