Searched refs:bpbBytesPerSec (Results 1 – 5 of 5) sorted by relevance
/external/fsck_msdos/ |
D | boot.c | 68 boot->bpbBytesPerSec = block[11] + (block[12] << 8); in readboot() 85 if (boot->bpbBytesPerSec % DOSBOOTBLOCKSIZE_REAL != 0 || in readboot() 86 boot->bpbBytesPerSec / DOSBOOTBLOCKSIZE_REAL == 0) { in readboot() 87 pfatal("Invalid sector size: %u", boot->bpbBytesPerSec); in readboot() 130 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, in readboot() 131 SEEK_SET) != boot->bpbFSInfo * boot->bpbBytesPerSec in readboot() 157 boot->bpbBytesPerSec, SEEK_SET) in readboot() 158 != boot->bpbFSInfo * boot->bpbBytesPerSec in readboot() 177 if (lseek(dosfs, boot->bpbBackup * boot->bpbBytesPerSec, in readboot() 179 != boot->bpbBackup * boot->bpbBytesPerSec in readboot() [all …]
|
D | fat.c | 80 off *= boot->bpbBytesPerSec; in checkdirty() 82 buffer = malloc(len = boot->bpbBytesPerSec); in checkdirty() 93 if ((size_t)read(fs, buffer, boot->bpbBytesPerSec) != in checkdirty() 94 boot->bpbBytesPerSec) { in checkdirty() 171 *buffer = malloc(len = boot->FATsecs * boot->bpbBytesPerSec); in _readfat() 178 off *= boot->bpbBytesPerSec; in _readfat() 185 if ((size_t)read(fs, *buffer, boot->FATsecs * boot->bpbBytesPerSec) in _readfat() 186 != boot->FATsecs * boot->bpbBytesPerSec) { in _readfat() 569 buffer = malloc(fatsz = boot->FATsecs * boot->bpbBytesPerSec); in writefat() 655 off *= boot->bpbBytesPerSec; in writefat()
|
D | dir.c | 226 b2 = boot->bpbSecPerClust * boot->bpbBytesPerSec; in resetDosDirSection() 320 int clsz = boot->bpbSecPerClust * boot->bpbBytesPerSec; in delete() 331 off *= boot->bpbBytesPerSec; in delete() 475 last = boot->bpbSecPerClust * boot->bpbBytesPerSec; in readDosDirSection() 479 off *= boot->bpbBytesPerSec; in readDosDirSection() 970 + boot->ClusterOffset * boot->bpbBytesPerSec; in reconnect()
|
D | dosfs.h | 46 u_int bpbBytesPerSec; /* bytes per sector */ member
|
/external/newfs_msdos/ |
D | mkfs_msdos.c | 117 u_int8_t bpbBytesPerSec[2]; /* bytes per sector */ member 161 u_int bpbBytesPerSec; /* bytes per sector */ member 327 bpb.bpbBytesPerSec = o.bytes_per_sector; in mkfs_msdos() 335 bpb.bpbHugeSectors -= (o.offset / bpb.bpbBytesPerSec); in mkfs_msdos() 349 if (!powerof2(bpb.bpbBytesPerSec)) { in mkfs_msdos() 350 warnx("bytes/sector (%u) is not a power of 2", bpb.bpbBytesPerSec); in mkfs_msdos() 353 if (bpb.bpbBytesPerSec < MINBPS) { in mkfs_msdos() 355 bpb.bpbBytesPerSec, MINBPS); in mkfs_msdos() 387 if (o.block_size < bpb.bpbBytesPerSec) { in mkfs_msdos() 389 o.block_size, bpb.bpbBytesPerSec); in mkfs_msdos() [all …]
|