• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/hfs/hfscommon/Misc/

Lines Matching refs:extents

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,
97 and was in the extents file, then delete the record instead.
134 HFSPlusExtentRecord extents,
140 HFSPlusExtentRecord extents);
198 // Purpose: Search the extents BTree for an extent record matching the given
349 HFSPlusExtentRecord extents,
366 * only occurs when the file already has overflow extents. So
367 * We need to make sure we have the lock here. The extents
388 err = HFSPlusToHFSExtents(extents, data);
392 btRecord.bufferAddress = extents;
551 // Function: Release the extents of a single extent data record.
602 // allocation blocks represented by the extents are deallocated.
623 HFSPlusExtentRecord extents;
628 * only occurs when the file already has overflow extents. So
629 * We need to make sure we have the lock here. The extents
636 err = FindExtentRecord(vcb, forkType, fileID, startBlock, false, &key, extents, &hint);
643 err = ReleaseExtents( vcb, extents, &numberExtentsReleased, &releasedLastExtent );
676 // Release the catalog extents
678 // Release the extra extents, if present
888 /* zero out remaining extents. */
1165 err = dskFulErr; // Oops. Can't extend extents file past first record.
1181 // zero out remaining extents...
1192 // We couldn't create an extent record because extents B-tree
1352 // Deallocate all the extents for this fork
1370 // in the found extent plus all previous extents.
1406 // Release all following extents in this extent record. Update the record.
1425 // If any of the extents in the current record were changed, then update that
1426 // record (in the FCB, or extents file).
1460 HFSPlusExtentRecord extents;
1483 * Process catalog resident extents
1488 break; /* end of extents */
1524 * Process overflow extents
1529 error = FindExtentRecord(vcb, forkType, fileID, startblk, false, NULL, extents, NULL);
1537 printf("HeadTruncateFile: problems finding extents %s (%d)\n",
1544 blkcnt = extents[i].blockCount;
1546 break; /* end of extents */
1549 error = BlockDeallocate(vcb, extents[i].startBlock, blkcnt);
1557 tailExtents[j].startBlock = extents[i].startBlock;
1754 // in searching the extents file. Note that SearchExtentRecord left us pointing at
1760 err = fxRangeErr; // There are no more extents, so must be beyond PEOF
1775 // If we get here, the desired position is beyond the extents in the FCB, and there are no extents
1776 // in the extents file. Return the FCB's extents and a range error.
1782 // first SearchExtentRecord call in this function (when searching in the FCB's extents, and
1790 // If we found a record, then search it for the correct index into the extents.
1808 // If all of the extents are empty, and the extent record is in the
1809 // extents file, then the record is deleted.
1811 // Input: vcb - the volume containing the extents
1812 // fcb - the file that owns the extents
1814 // If the key length is 0, then the extents are actually part
1854 * overflow extents. So we need to make sure we have the lock
1855 * here. The extents btree lock can be nested (its recursive)
1924 // copy the first 3 extents
1934 DebugStr("\pExtentRecord with > 3 extents is invalid for HFS");
1947 HFSPlusExtentRecord extents)
1950 BlockMoveData(fcb->fcbExtents, extents, sizeof(HFSPlusExtentRecord));
2015 HFSPlusExtentRecord extents;
2026 // check the local extents
2027 (void) GetFCBExtentRecord(fcb, extents);
2028 if ( !ExtentsAreIntegral(extents, mask, &blocksChecked, &lastExtentReached) )
2039 // check the overflow extents (if any)
2042 result = FindExtentRecord(vcb, kDataForkType, fcb->ff_cp->c_fileid, startBlock, FALSE, &key, extents, &hint);
2045 if ( !ExtentsAreIntegral(extents, mask, &blocksChecked, &lastExtentReached) ) {