Lines Matching refs:blockSize
179 vcb->reserveBlocks = MIN(vcb->reserveBlocks, HFS_MAXRESERVE / vcb->blockSize);
317 (hfsmp->jnl_start * HFSTOVCB(hfsmp)->blockSize) + (off_t)HFSTOVCB(hfsmp)->hfsPlusIOPosOffset,
722 SWAP_BE32(vhp->blockSize) != vcb->blockSize) {
1453 MIN(HFS_LOWDISKTRIGGERLEVEL / HFSTOVCB(hfsmp)->blockSize,
1456 MIN(HFS_LOWDISKSHUTOFFLEVEL / HFSTOVCB(hfsmp)->blockSize,
1467 MIN(HFS_ROOTLOWDISKTRIGGERLEVEL / HFSTOVCB(hfsmp)->blockSize,
1470 MIN(HFS_ROOTLOWDISKSHUTOFFLEVEL / HFSTOVCB(hfsmp)->blockSize,
1839 sbp->f_bsize = (u_int32_t)vcb->blockSize;
2345 (off_t)name[2] * (off_t)HFSTOVCB(hfsmp)->blockSize
2450 jnl_start = (off_t)(hfsmp->jnl_start * HFSTOVCB(hfsmp)->blockSize) + (off_t)HFSTOVCB(hfsmp)->hfsPlusIOPosOffset;
2948 mdb->drXTFlSize = SWAP_BE32 (fp->ff_blocks * vcb->blockSize);
2959 mdb->drCTFlSize = SWAP_BE32 (fp->ff_blocks * vcb->blockSize);
3051 (SWAP_BE32 (volumeHeader->blockSize) != vcb->blockSize)) {
3055 SWAP_BE32 (volumeHeader->blockSize));
3349 oldsize = (u_int64_t)hfsmp->totalBlocks * (u_int64_t)hfsmp->blockSize;
3358 newblkcnt = newsize / vcb->blockSize;
3385 bitmapblks = roundup((newblkcnt+7) / 8, vcb->vcbVBMIOSize) / vcb->blockSize;
3409 error = ExtendFileC(vcb, fp, bitmapblks * vcb->blockSize, 0,
3438 fp->ff_size += (u_int64_t)bitmapblks * (u_int64_t)vcb->blockSize;
3448 error = (int)buf_meta_bread(vp, blkno, vcb->blockSize, NOCRED, &bp);
3455 bzero((char *)buf_dataptr(bp), vcb->blockSize);
3489 if (vcb->blockSize == 512)
3500 if (vcb->blockSize == 512)
3526 fp->ff_size -= (u_int64_t)bitmapblks * (u_int64_t)vcb->blockSize;
3539 if (vcb->blockSize == 512)
3581 attr_fp->ff_size = (off_t) newblkcnt * hfsmp->blockSize;
3642 oldsize = (u_int64_t)hfsmp->totalBlocks * (u_int64_t)hfsmp->blockSize;
3643 newblkcnt = newsize / hfsmp->blockSize;
3681 if (hfsmp->blockSize == 512)
3730 if (hfsmp->blockSize == 512)
3738 error = BlockMarkAllocated(hfsmp, hfsmp->allocLimit, (hfsmp->blockSize == 512) ? 2 : 1);
3796 fp->ff_size = (off_t) newblkcnt * hfsmp->blockSize;
3882 u_int32_t sectorsPerBlock = hfsmp->blockSize / hfsmp->hfs_logical_block_size;
3923 resid = (off_t) blockCount * (off_t) hfsmp->blockSize;
3924 srcSector = (daddr64_t) oldStart * hfsmp->blockSize / hfsmp->hfs_logical_block_size;
3925 destSector = (daddr64_t) newStart * hfsmp->blockSize / hfsmp->hfs_logical_block_size;
4238 hfsmp->vcbJinfoBlock * (hfsmp->blockSize/hfsmp->hfs_logical_block_size),
4239 hfsmp->blockSize, vfs_context_ucred(args->context), &bp);
4245 jibp->offset = SWAP_BE64((u_int64_t)args->newStartBlock * hfsmp->blockSize);
4286 oldBlockCount = hfsmp->jnl_size / hfsmp->blockSize;
4311 journal_fork.cf_size = newBlockCount * hfsmp->blockSize;
4325 error = journal_relocate(hfsmp->jnl, (off_t)newStartBlock*hfsmp->blockSize,
4326 (off_t)newBlockCount*hfsmp->blockSize, 0,
4334 hfsmp->jnl_size = (off_t)newBlockCount * hfsmp->blockSize;
4394 hfsmp->vcbJinfoBlock * (hfsmp->blockSize/hfsmp->hfs_logical_block_size),
4395 hfsmp->blockSize, vfs_context_ucred(context), &old_bp);
4401 newBlock * (hfsmp->blockSize/hfsmp->hfs_logical_block_size),
4402 hfsmp->blockSize, 0, 0, BLK_META);
4403 bcopy((char*)buf_dataptr(old_bp), (char*)buf_dataptr(new_bp), hfsmp->blockSize);
4426 jib_fork.cf_size = hfsmp->blockSize;
4534 if (hfsmp->jnl_start + (hfsmp->jnl_size / hfsmp->blockSize) > startblk) {
4862 VFSATTR_RETURN(fsap, f_bsize, (u_int32_t)vcb->blockSize);