Searched refs:totalBlocks (Results 1 - 25 of 27) sorted by relevance

12

/macosx-10.10/libutil-38/
H A DExtentManager.h52 ExtentManager() : blockSize(0), totalBytes(0), totalBlocks(0) {};
70 off_t totalBlocks; member in class:ExtentManager
H A DExtentManager.cpp35 totalBlocks = howmany(totalBytes, blockSize);
39 AddBlockRangeExtent(totalBlocks, 0);
58 if ((blockAddr > totalBlocks) || (blockAddr + numBlocks < 0)) { // totally out of range, do nothing
65 if (blockAddr + numBlocks > totalBlocks) {
66 numBlocks = totalBlocks - blockAddr;
H A Dwipefs.cpp83 off_t lastBlockAddr = extMan->totalBlocks - 1;
/macosx-10.10/JavaScriptCore-7600.1.17/heap/
H A DRegion.h83 Region(size_t blockSize, size_t totalBlocks, bool isExcess);
105 NormalRegion(PassRefPtr<WTF::MetaAllocatorHandle>, size_t blockSize, size_t totalBlocks);
121 ExcessRegion(PageAllocationAligned&, size_t blockSize, size_t totalBlocks);
136 inline NormalRegion::NormalRegion(PassRefPtr<WTF::MetaAllocatorHandle> allocation, size_t blockSize, size_t totalBlocks) argument
137 : Region(blockSize, totalBlocks, false)
167 inline ExcessRegion::ExcessRegion(PageAllocationAligned& allocation, size_t blockSize, size_t totalBlocks) argument
168 : Region(blockSize, totalBlocks, true)
200 inline Region::Region(size_t blockSize, size_t totalBlocks, bool isExcess) argument
203 , m_totalBlocks(totalBlocks)
/macosx-10.10/hfs-285/newfs_hfs/
H A Dhfs_endian.c133 src->totalBlocks = SWAP_BE32 (src->totalBlocks);
166 src->totalBlocks = SWAP_BE32 (src->totalBlocks);
H A Dmakehfs.c206 file->extents[0].blockCount = file->totalBlocks;
215 file->extents[0].blockCount = file->totalBlocks;
218 if (file->totalBlocks < numExtents)
219 numExtents = file->totalBlocks;
221 blocksLeft = file->totalBlocks;
383 header->f.totalBlocks * header->blockSize, \
385 if (MarkExtentUsed(driveInfo, header, header->f.extents[0].startBlock, header->f.totalBlocks) == -1) { \
386 errx(1, #f " extent overlap <%u, %u>", header->f.extents[0].startBlock, header->f.totalBlocks); \
399 endOfAttributes = header->attributesFile.extents[0].startBlock + header->attributesFile.totalBlocks;
404 bytesToZero = (UInt64) header->catalogFile.totalBlocks * heade
[all...]
H A Dnewfs_hfs.c780 u_int32_t totalBlocks = fs_size/gBlockSize; local
782 if (gFSStartBlock >= totalBlocks) {
783 warnx("Warning: %u is invalid file system start allocation block number, must be less than total allocation blocks (%u)", (unsigned int)gFSStartBlock, (unsigned int)totalBlocks);
947 uint32_t totalBlocks; local
1172 * Figure out how many bytes we need for the given totalBlocks
1176 totalBlocks = sectorCount / (gBlockSize / sectorSize);
1178 minClumpSize = totalBlocks >> 3; /* convert bits to bytes by dividing by 8 */
1179 if (totalBlocks & 7)
1220 printf("\ttotal blocks: %u\n", totalBlocks);
/macosx-10.10/pdisk-9/
H A Dhfs_misc.c114 u32 totalBlocks; member in struct:HFSPlusForkData
131 u32 totalBlocks; member in struct:HFSPlusVolumeHeader
/macosx-10.10/xnu-2782.1.97/bsd/hfs/
H A Dhfs_resize.c142 oldsize = (u_int64_t)hfsmp->totalBlocks * (u_int64_t)hfsmp->blockSize;
157 addblks = newblkcnt - vcb->totalBlocks;
160 printf ("hfs_extendfs: old: size=%qu, blkcnt=%u\n", oldsize, hfsmp->totalBlocks);
248 overage_blocks -= vcb->totalBlocks;
250 BlockMarkFreeUnused(vcb, vcb->totalBlocks, overage_blocks);
284 error = AddFileExtent(vcb, fp, vcb->totalBlocks, bitmapblks);
339 error = BlockMarkAllocated(vcb, vcb->totalBlocks, bitmapblks);
352 error = BlockMarkAllocated(vcb, vcb->totalBlocks + addblks - 2, 2);
354 error = BlockMarkAllocated(vcb, vcb->totalBlocks + addblks - 1, 1);
364 (void) BlockMarkFree(vcb, vcb->totalBlocks
[all...]
H A Dhfs_vfsops.c205 vcb->reserveBlocks = ((u_int64_t)vcb->totalBlocks * HFS_MINFREE) / 100;
901 vcb->totalBlocks = SWAP_BE32 (vhp->totalBlocks);
918 forkp->ff_blocks = SWAP_BE32 (vhp->extentsFile.totalBlocks);
930 forkp->ff_blocks = SWAP_BE32 (vhp->catalogFile.totalBlocks);
942 forkp->ff_blocks = SWAP_BE32 (vhp->attributesFile.totalBlocks);
954 forkp->ff_blocks = SWAP_BE32 (vhp->allocationFile.totalBlocks);
1909 (HFSTOVCB(hfsmp)->totalBlocks / 100) * HFS_VERYLOWDISKTRIGGERFRACTION);
1912 (HFSTOVCB(hfsmp)->totalBlocks / 100) * HFS_LOWDISKTRIGGERFRACTION);
1915 (HFSTOVCB(hfsmp)->totalBlocks / 10
[all...]
H A Dhfs_format.h247 u_int32_t totalBlocks; /* total blocks used by this fork */ member in struct:HFSPlusForkData
677 u_int32_t totalBlocks; /* number of allocation blocks in volume (includes this header and VBM*/ member in struct:HFSPlusVolumeHeader
H A Dhfs_catalog.c404 datafp->cf_blocks = recp->hfsPlusFile.dataFork.totalBlocks;
420 rsrcfp->cf_blocks = recp->hfsPlusFile.resourceFork.totalBlocks;
1026 forkp->cf_blocks = recp->hfsPlusFile.resourceFork.totalBlocks;
1045 forkp->cf_blocks = recp->hfsPlusFile.dataFork.totalBlocks;
1061 if (forkp->cf_extents[i].startBlock + forkp->cf_extents[i].blockCount >= hfsmp->totalBlocks) {
1095 attrp->ca_blocks = validblks + recp->hfsPlusFile.resourceFork.totalBlocks;
1993 file->resourceFork.totalBlocks = forkp->cf_blocks;
2003 file->dataFork.totalBlocks = forkp->cf_blocks;
2701 rsrcforkp->totalBlocks = rsrcforkp->extents[0].blockCount;
2709 rsrcforkp->totalBlocks
2722 uint32_t totalBlocks; local
[all...]
H A Dhfs_vfsutils.c140 vcb->totalBlocks = SWAP_BE16 (mdb->drNmAlBlks);
141 vcb->allocLimit = vcb->totalBlocks;
442 vcb->totalBlocks = SWAP_BE32(vhp->totalBlocks);
443 vcb->allocLimit = vcb->totalBlocks;
470 (((daddr64_t)vcb->totalBlocks * blockSize) /
519 (((daddr64_t)vcb->totalBlocks * blockSize) / hfsmp->hfs_logical_block_size));
550 cfork.cf_blocks = SWAP_BE32 (vhp->extentsFile.totalBlocks);
589 cfork.cf_blocks = SWAP_BE32 (vhp->catalogFile.totalBlocks);
636 cfork.cf_blocks = SWAP_BE32 (vhp->allocationFile.totalBlocks);
[all...]
H A Dhfs_xattr.c608 totalblocks = recp->forkData.theFork.totalBlocks;
1191 recp->forkData.theFork.totalBlocks = blkcnt;
1669 totalblks = attrdata.forkData.theFork.totalBlocks;
2338 cat_attr.ca_blocks = hfsmp->totalBlocks;
2356 cat_fork.cf_size = (u_int64_t)hfsmp->totalBlocks * (u_int64_t)hfsmp->blockSize;
2357 cat_fork.cf_blocks = hfsmp->totalBlocks;
2604 return (forkdata->totalBlocks > blocks);
H A Dhfs_endian.c72 src->totalBlocks = SWAP_BE32 (src->totalBlocks);
H A Dhfs.h212 u_int32_t totalBlocks; /* total allocation blocks */ member in struct:hfsmount
217 * allocLimit is set to totalBlocks. The allocation code uses allocLimit instead of
218 * totalBlocks to limit which blocks may be allocated, so that during a resize, we don't
/macosx-10.10/hfs-285/fsck_hfs/dfalib/
H A DSUtils.c1529 if ( thePriVHPtr->catalogFile.totalBlocks != theAltVHPtr->catalogFile.totalBlocks ) {
1533 if ( thePriVHPtr->catalogFile.totalBlocks > theAltVHPtr->catalogFile.totalBlocks )
1539 thePriVHPtr->catalogFile.totalBlocks, theAltVHPtr->catalogFile.totalBlocks );
1544 if ( thePriVHPtr->extentsFile.totalBlocks != theAltVHPtr->extentsFile.totalBlocks ) {
1548 if ( thePriVHPtr->extentsFile.totalBlocks > theAltVHPtr->extentsFile.totalBlocks )
[all...]
H A DSVerify2.c356 UInt32 totalBlocks = 0; local
369 plog("Improperly split node in file id %u, offset %u (extent #%d), Extent <%u, %u>\n", calculatedBTCB->fcbPtr->fcbFileID, totalBlocks, i, (*extp)[i].startBlock, (*extp)[i].blockCount);
372 totalBlocks += (*extp)[i].blockCount;
408 plog("Improperly split node in file id %u, startBlock %u, index %d (offset %u), extent <%u, %u>\n", fileID, key->startBlock, i, totalBlocks, extRecord[i].startBlock, extRecord[i].blockCount);
411 totalBlocks += extRecord[i].blockCount;
1708 if ( volumeHeader->totalBlocks != vcb->vcbTotalBlocks ) {
1710 plog( "\tinvalid VHB totalBlocks \n" );
1749 if ( (UInt64)volumeHeader->extentsFile.totalBlocks * (UInt64)vcb->vcbBlockSize != fcbP->fcbPhysicalSize )
1768 if ( (UInt64)volumeHeader->catalogFile.totalBlocks * (UInt64)vcb->vcbBlockSize != fcbP->fcbPhysicalSize )
1788 if ( (UInt64)volumeHeader->allocationFile.totalBlocks * (UInt6
[all...]
H A DSVerify1.c709 realTotalBlocks = myVHBPtr->totalBlocks;
714 if ( myVHBPtr->attributesFile.totalBlocks == 0 )
725 if ( myVHBPtr->totalBlocks > numABlks ) {
731 myVHBPtr->totalBlocks, numABlks );
1045 if ( volumeHeader->extentsFile.totalBlocks != numABlks ) // check out the PEOF
1050 plog("Extents File totalBlocks = %u, numABlks = %u\n", volumeHeader->extentsFile.totalBlocks, numABlks);
1056 GPtr->calculatedExtentsFCB->fcbPhysicalSize = (UInt64)volumeHeader->extentsFile.totalBlocks *
1391 if ( volumeHeader->catalogFile.totalBlocks != numABlks )
1400 GPtr->calculatedCatalogFCB->fcbPhysicalSize = (UInt64)volumeHeader->catalogFile.totalBlocks *
2264 setLastAttrAllocInfo(SGlobPtr GPtr, u_int32_t totalBlocks, u_int64_t logicalSize, u_int32_t calculatedTotalBlocks) argument
[all...]
H A DCatalogCheck.c906 if (file->dataFork.totalBlocks != blocks) {
908 file->dataFork.totalBlocks, blocks);
926 if (file->resourceFork.totalBlocks != blocks) {
928 file->resourceFork.totalBlocks, blocks);
1035 uint8_t *dataBuffer = malloc(file->dataFork.totalBlocks * gScavGlobals->calculatedVCB->vcbBlockSize + 1);
1056 dataLen = strnlen((char*)dataBuffer, file->dataFork.totalBlocks * gScavGlobals->calculatedVCB->vcbBlockSize);
1069 if (islink == 1 && file->dataFork.totalBlocks != 0) {
H A Dhfs_endian.c71 src->totalBlocks = SWAP_BE32 (src->totalBlocks);
164 src->totalBlocks = SWAP_BE32 (src->totalBlocks);
H A DSRepair.c2447 ((UInt32)p->incorrect == rec.hfsPlusFile.resourceFork.totalBlocks)) {
2449 rec.hfsPlusFile.resourceFork.totalBlocks = (UInt32)p->correct;
2460 ((UInt32)p->incorrect == rec.hfsPlusFile.dataFork.totalBlocks)) {
2462 rec.hfsPlusFile.dataFork.totalBlocks = (UInt32)p->correct;
2803 if ((u_int32_t)p->incorrect == record.forkData.theFork.totalBlocks) {
2804 record.forkData.theFork.totalBlocks = (u_int32_t)p->correct;
5832 catRecord.hfsPlusFile.dataFork.totalBlocks = blockCount;
H A DScavenger.h639 u_int32_t totalBlocks; member in struct:attributeInfo
/macosx-10.10/xnu-2782.1.97/bsd/hfs/hfscommon/Catalog/
H A DFileIDsServices.c142 numSrcExtentBlocks = CheckExtents( srcData.hfsPlusFile.dataFork.extents, srcData.hfsPlusFile.dataFork.totalBlocks, isHFSPlus );
144 numSrcExtentBlocks = CheckExtents( srcData.hfsPlusFile.resourceFork.extents, srcData.hfsPlusFile.resourceFork.totalBlocks, isHFSPlus );
153 numDestExtentBlocks = CheckExtents( destData.hfsPlusFile.dataFork.extents, destData.hfsPlusFile.dataFork.totalBlocks, isHFSPlus );
155 numDestExtentBlocks = CheckExtents( destData.hfsPlusFile.resourceFork.extents, destData.hfsPlusFile.resourceFork.totalBlocks, isHFSPlus );
782 static u_int32_t CheckExtents( void *extents, u_int32_t totalBlocks, Boolean isHFSPlus ) argument
788 if ( totalBlocks == 0 )
798 if ( extentAllocationBlocks >= totalBlocks ) // greater than or equal (extents can add past eof if 'Close" crashes w/o truncating new clump)
808 if ( extentAllocationBlocks >= totalBlocks ) // greater than or equal (extents can add past eof if 'Close" crashes w/o truncating new clump)
/macosx-10.10/xnu-2782.1.97/bsd/hfs/hfscommon/Misc/
H A DVolumeAllocation.c815 while ((blocks_scanned < hfsmp->totalBlocks) && (error == 0)){
1183 if (*actualStartBlock >= hfsmp->totalBlocks) {
1190 if ((*actualStartBlock + *actualNumBlocks) >= hfsmp->totalBlocks) {
1251 if (firstBlock >= hfsmp->totalBlocks) {
1255 if ((firstBlock + numBlocks) >= hfsmp->totalBlocks) {
2602 deallocated to check if they are within totalBlocks
2636 * NOTE: We use vcb->totalBlocks instead of vcb->allocLimit because we
2640 (startingBlock + numBlocks > vcb->totalBlocks)) {
3245 u_int32_t min_start = vcb->totalBlocks;
3256 if (min_start != vcb->totalBlocks) {
[all...]

Completed in 462 milliseconds

12