Home
last modified time | relevance | path

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

/mirbsd/src/sbin/fsck_msdos/
Dboot.c71 boot->BytesPerSec = block[11] + (block[12] << 8); in readboot()
106 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET) in readboot()
107 != boot->FSInfo * boot->BytesPerSec in readboot()
133 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET) in readboot()
134 != boot->FSInfo * boot->BytesPerSec in readboot()
153 if (lseek(dosfs, boot->Backup * boot->BytesPerSec, SEEK_SET) in readboot()
154 != boot->Backup * boot->BytesPerSec in readboot()
182 if (boot->BytesPerSec == 0 || boot->BytesPerSec % DOSBOOTBLOCKSIZE in readboot()
184 pfatal("Invalid sector size: %u\n", boot->BytesPerSec); in readboot()
192 boot->ClusterOffset = (boot->RootDirEnts * 32 + boot->BytesPerSec - 1) in readboot()
[all …]
Dfat.c96 buffer = malloc(boot->FATsecs * boot->BytesPerSec); in readfat()
107 off *= boot->BytesPerSec; in readfat()
116 if (read(fs, buffer, boot->FATsecs * boot->BytesPerSec) in readfat()
117 != boot->FATsecs * boot->BytesPerSec) { in readfat()
433 buffer = malloc(fatsz = boot->FATsecs * boot->BytesPerSec); in writefat()
488 off *= boot->BytesPerSec; in writefat()
Ddir.c232 b2 = boot->SecPerClust * boot->BytesPerSec; in resetDosDirSection()
313 int clsz = boot->SecPerClust * boot->BytesPerSec; in delete()
324 off *= boot->BytesPerSec; in delete()
463 last = boot->SecPerClust * boot->BytesPerSec; in readDosDirSection()
467 off *= boot->BytesPerSec; in readDosDirSection()
951 + boot->ClusterOffset * boot->BytesPerSec; in reconnect()
Ddosfs.h50 u_int BytesPerSec; /* bytes per sector */ member