Searched refs:bpbBytesPerSec (Results 1 – 5 of 5) sorted by relevance
71 boot->bpbBytesPerSec = block[11] + (block[12] << 8); in readboot()72 if (boot->bpbBytesPerSec < DOSBOOTBLOCKSIZE_REAL || in readboot()73 boot->bpbBytesPerSec > DOSBOOTBLOCKSIZE || in readboot()74 !powerof2(boot->bpbBytesPerSec)) { in readboot()75 pfatal("Invalid sector size: %u", boot->bpbBytesPerSec); in readboot()202 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, in readboot()203 SEEK_SET) != boot->bpbFSInfo * boot->bpbBytesPerSec in readboot()229 boot->bpbBytesPerSec, SEEK_SET) in readboot()230 != boot->bpbFSInfo * boot->bpbBytesPerSec in readboot()260 boot->bpbBytesPerSec - 1) / boot->bpbBytesPerSec + in readboot()[all …]
593 off *= boot->bpbBytesPerSec; in checkdirty()595 buffer = malloc(len = boot->bpbBytesPerSec); in checkdirty()606 if ((size_t)read(fs, buffer, boot->bpbBytesPerSec) != in checkdirty()607 boot->bpbBytesPerSec) { in checkdirty()660 off *= boot->bpbBytesPerSec; in cleardirty()662 buffer = malloc(len = boot->bpbBytesPerSec); in cleardirty()706 fat->fatsize = boot->FATsecs * boot->bpbBytesPerSec; in _readfat()709 off *= boot->bpbBytesPerSec; in _readfat()739 fat->fat32_offset = boot->bpbResSectors * boot->bpbBytesPerSec; in _readfat()1162 dst_off *= boot->bpbBytesPerSec; in copyfat()[all …]
232 cluster_size = boot->bpbSecPerClust * boot->bpbBytesPerSec; in resetDosDirSection()308 clsz = boot->bpbSecPerClust * boot->bpbBytesPerSec; in delete()320 off *= boot->bpbBytesPerSec; in delete()493 buf = malloc(boot->bpbBytesPerSec); in check_subdirectory()496 boot->bpbBytesPerSec); in check_subdirectory()500 off *= boot->bpbBytesPerSec; in check_subdirectory()502 read(fd, buf, boot->bpbBytesPerSec) != (ssize_t)boot->bpbBytesPerSec) { in check_subdirectory()579 iosize = boot->bpbSecPerClust * boot->bpbBytesPerSec; in readDosDirSection()600 off *= boot->bpbBytesPerSec; in readDosDirSection()1122 + boot->FirstCluster * boot->bpbBytesPerSec; in reconnect()
46 u_int bpbBytesPerSec; /* bytes per sector */ member
118 u_int8_t bpbBytesPerSec[2]; /* bytes per sector */ member162 u_int bpbBytesPerSec; /* bytes per sector */ member337 bpb.bpbBytesPerSec = o.bytes_per_sector; in mkfs_msdos()346 bpb.bpbHugeSectors -= (o.offset / bpb.bpbBytesPerSec); in mkfs_msdos()360 if (bpb.bpbBytesPerSec < MINBPS || in mkfs_msdos()361 bpb.bpbBytesPerSec > MAXBPS || in mkfs_msdos()362 !powerof2(bpb.bpbBytesPerSec)) { in mkfs_msdos()364 bpb.bpbBytesPerSec); in mkfs_msdos()396 if (o.block_size < bpb.bpbBytesPerSec) { in mkfs_msdos()398 o.block_size, bpb.bpbBytesPerSec); in mkfs_msdos()[all …]