Home
last modified time | relevance | path

Searched refs:SecPerClust (Results 1 – 5 of 5) sorted by relevance

/openbsd/sbin/fsck_msdos/
H A Dboot.c90 boot->SecPerClust = block[13]; in readboot()
91 if (boot->SecPerClust == 0 || !powerof2(boot->SecPerClust)) { in readboot()
92 pfatal("Invalid cluster size: %u\n", boot->SecPerClust); in readboot()
243 - CLUST_FIRST * boot->SecPerClust; in readboot()
256 boot->NumClusters = (boot->NumSectors - boot->ClusterOffset) / boot->SecPerClust; in readboot()
287 boot->ClusterSize = boot->SecPerClust * secsize; in readboot()
H A Ddosfs.h44 u_int SecPerClust; /* sectors per cluster */ member
H A Ddir.c217 b2 = boot->SecPerClust * boot->BytesPerSec; in resetDosDirSection()
286 int clsz = boot->SecPerClust * boot->BytesPerSec; in delete()
296 off = startcl * boot->SecPerClust + boot->ClusterOffset; in delete()
440 last = boot->SecPerClust * boot->BytesPerSec; in readDosDirSection()
441 off = cl * boot->SecPerClust + boot->ClusterOffset; in readDosDirSection()
/openbsd/usr.sbin/makefs/msdos/
H A Dmsdosfs_vfsops.c88 uint8_t SecPerClust; in msdosfs_mount() local
118 SecPerClust = b50->bpbSecPerClust; in msdosfs_mount()
136 if (!pmp->pm_BytesPerSec || !SecPerClust in msdosfs_mount()
140 pmp->pm_BytesPerSec, SecPerClust, in msdosfs_mount()
207 SecPerClust; in msdosfs_mount()
240 pmp->pm_bpcluster = SecPerClust * pmp->pm_BytesPerSec; in msdosfs_mount()
/openbsd/sys/msdosfs/
H A Dmsdosfs_vfsops.c245 u_int8_t SecPerClust; in msdosfs_mountfs() local
292 SecPerClust = b50->bpbSecPerClust; in msdosfs_mountfs()
306 if (!pmp->pm_BytesPerSec || !SecPerClust) { in msdosfs_mountfs()
343 if ((SecPerClust == 0) || (SecPerClust & (SecPerClust - 1)) || in msdosfs_mountfs()
347 (SecPerClust * pmp->pm_BlkPerSec > MAXBSIZE / DEV_BSIZE)) { in msdosfs_mountfs()
356 SecPerClust *= pmp->pm_BlkPerSec; in msdosfs_mountfs()
372 SecPerClust; in msdosfs_mountfs()
428 pmp->pm_bpcluster = SecPerClust * DEV_BSIZE; in msdosfs_mountfs()