Home
last modified time | relevance | path

Searched refs:BytesPerSec (Results 1 – 4 of 4) sorted by relevance

/netbsd-src/sbin/fsck_msdos/
H A Dboot.c83 boot->BytesPerSec = block[11] + (block[12] << 8); in readboot()
133 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET) in readboot()
134 != boot->FSInfo * boot->BytesPerSec in readboot()
160 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET) in readboot()
161 != boot->FSInfo * boot->BytesPerSec in readboot()
183 if (lseek(dosfs, boot->Backup * boot->BytesPerSec, SEEK_SET) in readboot()
184 != boot->Backup * boot->BytesPerSec in readboot()
223 boot->FirstCluster = (boot->RootDirEnts * 32 + boot->BytesPerSec - 1) in readboot()
224 / boot->BytesPerSec in readboot()
228 if (boot->BytesPerSec % DOSBOOTBLOCKSIZE != 0) { in readboot()
[all …]
H A Dfat.c88 *buffer = malloc(len = boot->FATsecs * boot->BytesPerSec); in _readfat()
95 off *= boot->BytesPerSec; in _readfat()
102 if ((size_t)read(fs, *buffer, boot->FATsecs * boot->BytesPerSec) in _readfat()
103 != boot->FATsecs * boot->BytesPerSec) { in _readfat()
486 buffer = malloc(fatsz = boot->FATsecs * boot->BytesPerSec); in writefat()
572 off *= boot->BytesPerSec; in writefat()
H A Ddir.c226 b2 = boot->SecPerClust * boot->BytesPerSec; in resetDosDirSection()
319 int clsz = boot->SecPerClust * boot->BytesPerSec; in delete()
330 off *= boot->BytesPerSec; in delete()
493 last = boot->SecPerClust * boot->BytesPerSec; in readDosDirSection()
497 off *= boot->BytesPerSec; in readDosDirSection()
972 + boot->FirstCluster * boot->BytesPerSec; in reconnect()
H A Ddosfs.h42 u_int BytesPerSec; /* bytes per sector */ member