/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/ |
H A D | hfs_xattr.c | 89 static int read_attr_data(struct hfsmount *hfsmp, uio_t uio, size_t datasize, HFSPlusExtentDescriptor *extents); 91 static int write_attr_data(struct hfsmount *hfsmp, uio_t uio, size_t datasize, HFSPlusExtentDescriptor *extents); 93 static int alloc_attr_blks(struct hfsmount *hfsmp, size_t attrsize, size_t extentbufsize, HFSPlusExtentDescriptor *extents, int *blocks); 95 static void free_attr_blks(struct hfsmount *hfsmp, int blkcnt, HFSPlusExtentDescriptor *extents); 99 static int count_extent_blocks(int maxblks, HFSPlusExtentRecord extents); 393 /* Process overflow extents if necessary. */ 410 /* Get a buffer to hold the worst case amount of extents. */ 421 /* Grab the first 8 extents. */ 422 bcopy(&recp->forkData.theFork.extents[0], extentptr, sizeof(HFSPlusExtentRecord)); 424 blkcnt = count_extent_blocks(totalblocks, recp->forkData.theFork.extents); 1949 read_attr_data(struct hfsmount *hfsmp, uio_t uio, size_t datasize, HFSPlusExtentDescriptor *extents) argument 2002 write_attr_data(struct hfsmount *hfsmp, uio_t uio, size_t datasize, HFSPlusExtentDescriptor *extents) argument 2057 alloc_attr_blks(struct hfsmount *hfsmp, size_t attrsize, size_t extentbufsize, HFSPlusExtentDescriptor *extents, int *blocks) argument 2117 free_attr_blks(struct hfsmount *hfsmp, int blkcnt, HFSPlusExtentDescriptor *extents) argument 2187 count_extent_blocks(int maxblks, HFSPlusExtentRecord extents) argument [all...] |
H A D | hfs_catalog.c | 210 bcopy(&recp->hfsPlusFile.dataFork.extents[0], 226 bcopy(&recp->hfsPlusFile.resourceFork.extents[0], 702 bcopy(&recp->hfsPlusFile.resourceFork.extents[0], 721 bcopy(&recp->hfsPlusFile.dataFork.extents[0], 724 /* Validate the fork's resident extents. */ 728 /* Suppress any bad extents so a remove can succeed. */ 1625 bcopy(&forkp->cf_extents[0], &file->resourceFork.extents, 1635 bcopy(&forkp->cf_extents[0], &file->dataFork.extents, 1642 if ((file->resourceFork.extents[0].startBlock != 0) && 1643 (file->resourceFork.extents[ [all...] |
H A D | hfs_endian.c | 71 src->extents[i].startBlock = SWAP_BE32 (src->extents[i].startBlock); 72 src->extents[i].blockCount = SWAP_BE32 (src->extents[i].blockCount); 439 panic("hfs_swap_HFSPlusBTInternalNode: extents key #%d offset too big (0x%04X)\n", srcDesc->numRecords-i-1, srcOffs[i]); 441 printf("hfs_swap_HFSPlusBTInternalNode: extents key #%d offset too big (0x%04X)\n", srcDesc->numRecords-i-1, srcOffs[i]); 450 panic("hfs_swap_HFSPlusBTInternalNode: extents key #%d invalid length (%d)\n", srcDesc->numRecords-i-1, srcKey->keyLength); 452 printf("hfs_swap_HFSPlusBTInternalNode: extents key #%d invalid length (%d)\n", srcDesc->numRecords-i-1, srcKey->keyLength); 850 panic("hfs_swap_HFSPlusBTInternalNode: attr extents #%d too big\n", srcDesc->numRecords-i-1); 852 printf("hfs_swap_HFSPlusBTInternalNode: attr extents # [all...] |
H A D | hfs_vfsops.c | 655 * re-load meta-file info (extents, file size). 749 SWAP_BE32 (vhp->extentsFile.extents[i].startBlock); 751 SWAP_BE32 (vhp->extentsFile.extents[i].blockCount); 761 SWAP_BE32 (vhp->catalogFile.extents[i].startBlock); 763 SWAP_BE32 (vhp->catalogFile.extents[i].blockCount); 773 SWAP_BE32 (vhp->attributesFile.extents[i].startBlock); 775 SWAP_BE32 (vhp->attributesFile.extents[i].blockCount); 785 SWAP_BE32 (vhp->allocationFile.extents[i].startBlock); 787 SWAP_BE32 (vhp->allocationFile.extents[i].blockCount); 3143 volumeHeader->extentsFile.extents[ [all...] |
H A D | hfs_format.h | 234 HFSPlusExtentRecord extents; /* initial set of extents */ member in struct:HFSPlusForkData 283 kHFSExtentsFileID = 3, /* File ID of the extents file */ 292 kHFSBogusExtentFileID = 15, /* Used for exchanging extents in extents file */ 460 kHFSPlusAttrForkData = 0x20, /* extent based attributes (data lives in extents) */ 461 kHFSPlusAttrExtents = 0x30 /* overflow extents for large attributes */ 468 If the attribute has more than 8 extents, there will be additional 474 HFSPlusForkData theFork; /* size and first extents of value*/ 480 This record contains information about overflow extents fo 486 HFSPlusExtentRecord extents; /* additional extents*/ member in struct:HFSPlusAttrExtents [all...] |
H A D | hfs_vfsutils.c | 435 SWAP_BE32 (vhp->extentsFile.extents[i].startBlock); 437 SWAP_BE32 (vhp->extentsFile.extents[i].blockCount); 468 SWAP_BE32 (vhp->catalogFile.extents[i].startBlock); 470 SWAP_BE32 (vhp->catalogFile.extents[i].blockCount); 509 SWAP_BE32 (vhp->allocationFile.extents[i].startBlock); 511 SWAP_BE32 (vhp->allocationFile.extents[i].blockCount); 536 SWAP_BE32 (vhp->attributesFile.extents[i].startBlock); 538 SWAP_BE32 (vhp->attributesFile.extents[i].blockCount); 569 SWAP_BE32 (vhp->startupFile.extents[i].startBlock); 571 SWAP_BE32 (vhp->startupFile.extents[ [all...] |
H A D | hfs_hotfiles.c | 635 if (!hotextents(hfsmp, &filep->dataFork.extents[0])) { 1607 hotextents(struct hfsmount *hfsmp, HFSPlusExtentDescriptor * extents) argument 1614 b1 = extents[i].startBlock; 1617 b2 = b1 + extents[i].blockCount - 1;
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/vm/ |
H A D | memory_object.c | 703 } extents[MAX_EXTENTS]; local 915 * a collection of extents (that encompass actual resident pages) 949 if ((m->offset & e_mask) == extents[n].e_base) { 955 if (m->offset < extents[n].e_min) 956 extents[n].e_min = m->offset; 957 else if ((m->offset + (PAGE_SIZE - 1)) > extents[n].e_max) 958 extents[n].e_max = m->offset + (PAGE_SIZE - 1); 972 extents[n].e_base = m->offset & e_mask; 973 extents[n].e_min = m->offset; 974 extents[ [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/hfscommon/Misc/ |
H A D | FileExtentMapping.c | 47 Compare two extents file keys (a search key and a trial 49 adding, or deleting keys in the extents file of an HFS 53 Compare two extents file keys (a search key and a trial 55 adding, or deleting keys in the extents file of an HFS+ 67 Flush the extents file for a given volume. 76 Search the extents BTree for a particular extent record. 78 Search the FCB and extents file for an extent record that 84 Deallocate all allocation blocks in all extents of an extent 94 If the extent record came from the extents file, write out 96 the FCB resident extent record. If the record has no extents, 346 CreateExtentRecord( ExtendedVCB *vcb, HFSPlusExtentKey *key, HFSPlusExtentRecord extents, u_int32_t *hint) argument 623 HFSPlusExtentRecord extents; local 1460 HFSPlusExtentRecord extents; local 1945 GetFCBExtentRecord( const FCB *fcb, HFSPlusExtentRecord extents) argument 2015 HFSPlusExtentRecord extents; local [all...] |
H A D | BTreeWrapper.c | 266 dataExtent = (HFSPlusExtentDescriptor*) &catalogRecord->hfsPlusFile.dataFork.extents; 267 rsrcExtent = (HFSPlusExtentDescriptor*) &catalogRecord->hfsPlusFile.resourceFork.extents;
|
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/hfscommon/Catalog/ |
H A D | FileIDsServices.c | 44 static u_int32_t CheckExtents( void *extents, u_int32_t blocks, Boolean isHFSPlus ); 73 //-- Step 1: Check the catalog nodes for extents 75 //-- locate the source file, test for extents in extent file, and copy the cat record for later 82 //-- Check if there are any extents in the source file 83 //�� I am only checling the extents in the low 32 bits, routine will fail if files extents after 2 gig are in overflow 84 numSrcExtentBlocks = CheckExtents( srcData.hfsPlusFile.dataFork.extents, srcData.hfsPlusFile.dataFork.totalBlocks, isHFSPlus ); 85 if ( numSrcExtentBlocks == 0 ) // then check the resource fork extents 86 numSrcExtentBlocks = CheckExtents( srcData.hfsPlusFile.resourceFork.extents, srcData.hfsPlusFile.resourceFork.totalBlocks, isHFSPlus ); 88 //-- Check if there are any extents i 620 CheckExtents( void *extents, u_int32_t totalBlocks, Boolean isHFSPlus ) argument [all...] |
/macosx-10.5.8/xnu-1228.15.4/iokit/Kernel/ |
H A D | IOHibernateIO.cpp | 37 grabs its extents and searches for a polling driver willing to work with that IOMedia. 534 OSData * extents; member in struct:_OpenFileContext 547 ctx->extents->appendBytes(&extent, sizeof(extent)); 582 ctx.extents = extentsData;
|