Lines Matching refs:blockSize
126 vcb->blockSize = SWAP_BE32 (mdb->drAlBlkSiz);
149 hfsmp->hfs_logBlockSize = BestBlockSizeFit(vcb->blockSize, MAXBSIZE, hfsmp->hfs_logical_block_size);
170 fork.cf_blocks = fork.cf_size / vcb->blockSize;
199 fork.cf_blocks = fork.cf_size / vcb->blockSize;
291 u_int32_t blockSize;
323 blockSize = SWAP_BE32(vhp->blockSize);
324 if (blockSize < 512 || !powerof2(blockSize))
335 (blockSize < hfsmp->hfs_logical_block_size)) {
347 if (blockSize < hfsmp->hfs_physical_block_size) {
381 vcb->blockSize = blockSize;
395 hfsmp->hfs_logBlockSize = BestBlockSizeFit(vcb->blockSize, MAXBSIZE, hfsmp->hfs_logical_block_size);
396 vcb->vcbVBMIOSize = min(vcb->blockSize, MAXPHYSIO);
402 (((daddr64_t)vcb->totalBlocks * blockSize) /
405 if (spare_sectors > (daddr64_t)(blockSize / hfsmp->hfs_logical_block_size)) {
627 mdb_offset = (daddr64_t)((embeddedOffset / blockSize) + HFS_PRI_SECTOR(blockSize));
1307 fsize = (u_int64_t)dfork.ff_blocks * (u_int64_t)HFSTOVCB(hfsmp)->blockSize;
1506 if (vfsp->f_bsize != hfsmp->blockSize) {
1507 vfreeblks = ((u_int64_t)vfreeblks * (u_int64_t)(vfsp->f_bsize)) / hfsmp->blockSize;
1799 sectors_per_fsblock = SWAP_BE32(vhp->blockSize) / blksize;
1804 SWAP_BE32(vhp->blockSize), cred, &jinfo_bp);
1822 hfsmp->jnl_start = jib_offset / SWAP_BE32(vhp->blockSize);
1869 // jib_size, SWAP_BE32(vhp->blockSize));
1982 sectors_per_fsblock = SWAP_BE32(vhp->blockSize) / hfsmp->hfs_logical_block_size;
1986 SWAP_BE32(vhp->blockSize), NOCRED, &jinfo_bp);
2009 if ((jib_offset / (u_int64_t)vcb->blockSize) != jfork.cf_extents[0].startBlock) {
2011 (jib_offset / (u_int64_t)vcb->blockSize), jfork.cf_extents[0].startBlock);
2013 jib_offset = (u_int64_t)jfork.cf_extents[0].startBlock * (u_int64_t)vcb->blockSize;
2019 if (jib_size != (u_int64_t)jfork.cf_extents[0].blockCount*vcb->blockSize) {
2021 jib_size, (u_int64_t)jfork.cf_extents[0].blockCount*vcb->blockSize);
2023 jib_size = (u_int64_t)jfork.cf_extents[0].blockCount * vcb->blockSize;
2037 hfsmp->jnl_start = jib_offset / SWAP_BE32(vhp->blockSize);
2092 // jib_size, SWAP_BE32(vhp->blockSize));
2170 fs_size = (u_int64_t)vcb->blockSize * (u_int64_t)vcb->totalBlocks;
2196 hfsmp->hfs_overflow_maxblks = filesize / vcb->blockSize;
2216 hfsmp->hfs_catalog_maxblks = filesize / vcb->blockSize;
2271 zonesize = roundup(zonesize, (u_int64_t)vcb->vcbVBMIOSize * 8 * vcb->blockSize);
2274 hfsmp->hfs_catalog_maxblks += (temp - (temp / 3)) / vcb->blockSize;
2276 hfsmp->hfs_hotfile_maxblks = filesize / vcb->blockSize;
2279 blk = zonesize / vcb->blockSize;
2286 hfsmp->hfs_hotfile_start = blk - (filesize / vcb->blockSize);