/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/ |
H A D | hfs_btreeio.h | 40 extern OSStatus SetBTreeBlockSize(FileReference vp, ByteCount blockSize,
|
H A D | hfs_btreeio.c | 58 OSStatus SetBTreeBlockSize(FileReference vp, ByteCount blockSize, __unused ItemCount minBlockCount) argument 63 DBG_ASSERT(blockSize >= kMinNodeSize); 64 if (blockSize > MAXBSIZE ) 68 bTreePtr->nodeSize = blockSize; 94 offset = (daddr64_t)blockNum * (daddr64_t)block->blockSize; 95 bp = buf_getblk(vp, (daddr64_t)blockNum, block->blockSize, 0, 0, BLK_META); 97 VNOP_BLOCKMAP(vp, offset, block->blockSize, &blkno, NULL, NULL, 0, NULL) == 0) { 101 retval = buf_meta_bread(vp, (daddr64_t)blockNum, block->blockSize, NOCRED, &bp); 136 } else if (*((u_int16_t *)((char *)block->buffer + (block->blockSize - sizeof (u_int16_t)))) == 0x0e00) { 202 block.blockSize [all...] |
H A D | hfs_vfsutils.c | 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; local 323 blockSize = SWAP_BE32(vhp->blockSize); 324 if (blockSize < 512 || !powerof2(blockSize)) 335 (blockSize < hfsm [all...] |
H A D | hfs_vfsops.c | 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 [all...] |
H A D | hfs_readwrite.c | 133 filebytes = (off_t)fp->ff_blocks * (off_t)hfsmp->blockSize; 262 filebytes = (off_t)fp->ff_blocks * (off_t)hfsmp->blockSize; 298 retval = hfs_chkdq(cp, (int64_t)(roundup(bytesToAdd, hfsmp->blockSize)), 333 filebytes = (off_t)fp->ff_blocks * (off_t)hfsmp->blockSize; 572 filebytes = (off_t)fp->ff_blocks * (off_t)hfsmp->blockSize; 1436 cursize = (u_int64_t)hfsmp->totalBlocks * (u_int64_t)hfsmp->blockSize; 1535 hfsmp->hfs_sparsebandblks = bsdata->bandsize / HFSTOVCB(hfsmp)->blockSize; 2319 blksize = VTOVCB(vp)->blockSize; 2613 blksize = VTOVCB(vp)->blockSize; 2720 filebytes = (off_t)fileblocks * (off_t)vcb->blockSize; [all...] |
H A D | hfs_endian.c | 175 srcOffs = (u_int16_t *)((char *)src->buffer + (src->blockSize - ((srcDesc->numRecords + 1) * sizeof (u_int16_t)))); 180 if ((char *)srcOffs > ((char *)src->buffer + src->blockSize) || 203 (srcOffs[i] >= src->blockSize)) { 327 srcOffs = (u_int16_t *)((char *)src->buffer + (src->blockSize - ((srcDesc->numRecords + 1) * sizeof (u_int16_t)))); 332 if ((char *)srcOffs > ((char *)src->buffer + src->blockSize) || 355 (srcOffs[i] >= src->blockSize)) { 399 u_int16_t *srcOffs = (u_int16_t *)((char *)src->buffer + (src->blockSize - (srcDesc->numRecords * sizeof (u_int16_t)))); 935 u_int16_t *srcOffs = (u_int16_t *)((char *)src->buffer + (src->blockSize - (srcDesc->numRecords * sizeof (u_int16_t))));
|
H A D | hfs_xattr.c | 746 blkcnt = howmany(attrsize, hfsmp->blockSize); 1830 freebytes = (u_int64_t)hfs_freeblks(hfsmp, 0) * (u_int64_t)hfsmp->blockSize; 1915 cat_fork.cf_size = (u_int64_t)hfsmp->totalBlocks * (u_int64_t)hfsmp->blockSize; 1966 blksize = (int)hfsmp->blockSize; 2021 blksize = (int) hfsmp->blockSize; 2067 blkcnt = howmany(attrsize, hfsmp->blockSize); 2154 start = (u_int64_t)extents[i].startBlock * (u_int64_t)hfsmp->blockSize; 2155 end = start + (u_int64_t)extents[i].blockCount * (u_int64_t)hfsmp->blockSize;
|
H A D | hfs_catalog.c | 205 HFSTOVCB(hfsmp)->blockSize; 221 HFSTOVCB(hfsmp)->blockSize; 697 HFSTOVCB(hfsmp)->blockSize; 716 HFSTOVCB(hfsmp)->blockSize; 747 psize = (off_t)validblks * (off_t)hfsmp->blockSize; 1434 blksize = HFSTOVCB(hfsmp)->blockSize; 2182 blksize = hfsmp->blockSize; 2394 int blksize = HFSTOVCB(hfsmp)->blockSize; 3907 u_long blocksize = HFSTOVCB(hfsmp)->blockSize; 3943 u_long blocksize = HFSTOVCB(hfsmp)->blockSize; [all...] |
H A D | hfs_format.h | 643 u_int32_t blockSize; /* size (in bytes) of allocation blocks */ member in struct:HFSPlusVolumeHeader
|
H A D | hfs_hotfiles.c | 237 (error = hfc_btree_create(hfsmp, HFSTOVCB(hfsmp)->blockSize, HFC_DEFAULT_FILE_COUNT))) { 277 hotdata->maxblocks = HFC_MAXIMUM_FILESIZE / HFSTOVCB(hfsmp)->blockSize; 555 error = hfc_btree_create(hfsmp, HFSTOVCB(hfsmp)->blockSize, HFC_DEFAULT_FILE_COUNT); 1863 hotfileinfo->maxfileblks = SWAP_BE32 (HFC_MAXIMUM_FILESIZE / HFSTOVCB(hfsmp)->blockSize);
|
H A D | hfs_search.c | 811 (u_int64_t)datafork.cf_blocks * (u_int64_t)vcb->blockSize, 831 (u_int64_t)rsrcfork.cf_blocks * (u_int64_t)vcb->blockSize,
|
H A D | hfs_vnops.c | 317 blks = howmany(VTOF(vp)->ff_size, VTOVCB(vp)->blockSize); 339 blks = howmany(VTOF(vp)->ff_size, VTOVCB(vp)->blockSize); 507 VATTR_RETURN(vap, va_data_alloc, blocks * (u_int64_t)hfsmp->blockSize); 542 VATTR_RETURN(vap, va_total_alloc, (u_int64_t)cp->c_blocks * (u_int64_t)hfsmp->blockSize); 1035 * change = VTOHFS(vp)->blockSize; 1039 change = (int64_t)(cp->c_blocks) * (int64_t)VTOVCB(vp)->blockSize; 2796 if (((u_int64_t)hfs_freeblks(hfsmp, 0) * (u_int64_t)hfsmp->blockSize) < len) { 3429 datafork.cf_size = datafork.cf_blocks * HFSTOVCB(hfsmp)->blockSize; 3441 rsrcfork.cf_size = rsrcfork.cf_blocks * HFSTOVCB(hfsmp)->blockSize;
|
H A D | hfs.h | 177 u_int32_t blockSize; /* size of allocation blocks */ member in struct:hfsmount
|
H A D | hfs_attrlist.c | 801 allocblksize = HFSTOVCB(hfsmp)->blockSize;
|
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/hfscommon/BTree/ |
H A D | BTreeNodeReserve.c | 161 rsrvblks = MIN(rsrvblks, HFS_MAXRESERVE / hfsmp->blockSize); 172 reqblks = clumpsize / hfsmp->blockSize; 175 reqblks = ((rsrvNodes - availNodes) * btree->nodeSize) / hfsmp->blockSize; 180 file->ff_clumpsize = freeblks * hfsmp->blockSize;
|
H A D | BTreeNodeOps.c | 210 nodePtr->blockSize = btreePtr->nodeSize; // indicate the size of a node 270 returnNodePtr->blockSize = btreePtr->nodeSize; // indicate the size of a node
|
H A D | BTreeScanner.c | 196 block.blockSize = scanState->btcb->nodeSize;
|
H A D | BTree.c | 234 nodeRec.blockSize = VTOHFS(btreePtr->fileRefNum)->hfs_physical_block_size; 239 nodeRec.blockSize = FCBTOVCB(filePtr)->blockSize; 245 err = SetBTreeBlockSize (btreePtr->fileRefNum, nodeRec.blockSize, 1); 324 if ( btreePtr->nodeSize != nodeRec.blockSize )
|
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/ |
H A D | disk.h | 88 uint32_t blockSize; member in struct:__anon357
|
/macosx-10.5.8/xnu-1228.15.4/iokit/Kernel/ |
H A D | IOHibernateInternal.h | 63 IOByteCount blockSize; member in struct:IOPolledFileIOVars
|
H A D | IOHibernateIO.cpp | 645 vars->blockSize = 512; 661 vars->blockSize = num->unsigned32BitValue(); 668 major, minor, vars->blockSize, vars->pollers->getCount()); 794 size = vars->position & (vars->blockSize - 1); 796 size = vars->blockSize - size; 855 if (vars->position & (vars->blockSize - 1)) HIBLOG("misaligned file pos %qx\n", vars->position); 927 if (vars->position & (vars->blockSize - 1)) HIBLOG("misaligned file pos %qx\n", vars->position);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/hfscommon/headers/ |
H A D | BTreesInternal.h | 68 <HFS5> 2/19/97 djb Add SetBlockSizeProcPtr. Add blockSize field to BlockDescriptor. 123 ByteCount blockSize; member in struct:BlockDescriptor 187 ByteCount blockSize,
|
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/hfscommon/Misc/ |
H A D | FileExtentMapping.c | 489 allocBlockSize = vcb->blockSize; 864 peof = (int64_t)(fcb->ff_blocks + blockCount) * (int64_t)vcb->blockSize; 956 volumeBlockSize = vcb->blockSize; 1321 nextBlock = howmany(peof, vcb->blockSize); // number of allocation blocks to remain in file 1322 peof = (int64_t)((int64_t)nextBlock * (int64_t)vcb->blockSize); // number of bytes in those blocks 1337 numBlocks = peof / vcb->blockSize; 1736 temp64 = filePosition / (int64_t)vcb->blockSize; 2021 if (vcb->blockSize >= nodeSize) 2024 mask = (nodeSize / vcb->blockSize) - 1; 2032 (int64_t)((int64_t)blocksChecked * (int64_t)vcb->blockSize) > [all...] |
H A D | VolumeAllocation.c | 503 u_int32_t blockSize; local 510 blockSize = (u_int32_t)vcb->vcbVBMIOSize; 511 block = (daddr64_t)(bit / (blockSize * kBitsPerByte)); 521 err = (int)buf_meta_bread(vp, block, blockSize, NOCRED, &bp); 1195 discard.offset = (uint64_t)startingBlock * (uint64_t)vcb->blockSize; 1196 discard.length = (uint64_t)numBlocks * (uint64_t)vcb->blockSize;
|
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/hfscommon/Catalog/ |
H A D | FileIDsServices.c | 213 numSrcExtentBlocks = CheckExtents( srcData.hfsFile.dataExtents, srcData.hfsFile.dataPhysicalSize / vcb->blockSize, isHFSPlus ); 215 numSrcExtentBlocks = CheckExtents( srcData.hfsFile.rsrcExtents, srcData.hfsFile.rsrcPhysicalSize / vcb->blockSize, isHFSPlus ); 228 numDestExtentBlocks = CheckExtents( destData.hfsFile.dataExtents, destData.hfsFile.dataPhysicalSize / vcb->blockSize, isHFSPlus ); 230 numDestExtentBlocks = CheckExtents( destData.hfsFile.rsrcExtents, destData.hfsFile.rsrcPhysicalSize / vcb->blockSize, isHFSPlus );
|