Home
last modified time | relevance | path

Searched refs:bpbBytesPerSec (Results 1 - 5 of 5) sorted by relevance

/third_party/FreeBSD/sbin/fsck_msdosfs/
H A Dboot.c69 boot->bpbBytesPerSec = block[11] + (block[12] << 8); in readboot()
70 if (boot->bpbBytesPerSec < DOSBOOTBLOCKSIZE_REAL || in readboot()
71 boot->bpbBytesPerSec > DOSBOOTBLOCKSIZE || in readboot()
72 !powerof2(boot->bpbBytesPerSec)) { in readboot()
73 pfatal("Invalid sector size: %u", boot->bpbBytesPerSec); in readboot()
200 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, in readboot()
201 SEEK_SET) != boot->bpbFSInfo * boot->bpbBytesPerSec in readboot()
227 boot->bpbBytesPerSec, SEEK_SET) in readboot()
228 != boot->bpbFSInfo * boot->bpbBytesPerSec in readboot()
258 boot->bpbBytesPerSec in readboot()
[all...]
H A Ddir.c230 cluster_size = boot->bpbSecPerClust * boot->bpbBytesPerSec; in resetDosDirSection()
306 clsz = boot->bpbSecPerClust * boot->bpbBytesPerSec; in delete()
318 off *= boot->bpbBytesPerSec; in delete()
491 buf = malloc(boot->bpbBytesPerSec); in check_subdirectory()
494 boot->bpbBytesPerSec); in check_subdirectory()
498 off *= boot->bpbBytesPerSec; in check_subdirectory()
500 read(fd, buf, boot->bpbBytesPerSec) != (ssize_t)boot->bpbBytesPerSec) { in check_subdirectory()
577 iosize = boot->bpbSecPerClust * boot->bpbBytesPerSec; in readDosDirSection()
598 off *= boot->bpbBytesPerSec; in readDosDirSection()
[all...]
H A Dfat.c591 off *= boot->bpbBytesPerSec; in checkdirty()
593 buffer = malloc(len = boot->bpbBytesPerSec); in checkdirty()
604 if ((size_t)read(fs, buffer, boot->bpbBytesPerSec) != in checkdirty()
605 boot->bpbBytesPerSec) { in checkdirty()
658 off *= boot->bpbBytesPerSec; in cleardirty()
660 buffer = malloc(len = boot->bpbBytesPerSec); in cleardirty()
704 fat->fatsize = boot->FATsecs * boot->bpbBytesPerSec; in _readfat()
707 off *= boot->bpbBytesPerSec; in _readfat()
737 fat->fat32_offset = boot->bpbResSectors * boot->bpbBytesPerSec; in _readfat()
1160 dst_off *= boot->bpbBytesPerSec; in copyfat()
[all...]
H A Ddosfs.h45 u_int bpbBytesPerSec; /* bytes per sector */ member
/third_party/FreeBSD/sbin/newfs_msdos/
H A Dmkfs_msdos.c109 u_int8_t bpbBytesPerSec[2]; /* bytes per sector */ member
153 u_int bpbBytesPerSec; /* bytes per sector */ member
322 bpb.bpbBytesPerSec = o.bytes_per_sector; in mkfs_msdos()
331 bpb.bpbHugeSectors -= (o.offset / bpb.bpbBytesPerSec); in mkfs_msdos()
345 if (bpb.bpbBytesPerSec < MINBPS || in mkfs_msdos()
346 bpb.bpbBytesPerSec > MAXBPS || in mkfs_msdos()
347 !powerof2(bpb.bpbBytesPerSec)) { in mkfs_msdos()
349 bpb.bpbBytesPerSec); in mkfs_msdos()
381 if (o.block_size < bpb.bpbBytesPerSec) { in mkfs_msdos()
383 o.block_size, bpb.bpbBytesPerSec); in mkfs_msdos()
[all...]

Completed in 5 milliseconds