Searched refs:fcb (Results 1 - 25 of 26) sorted by relevance

12

/macosx-10.10/xnu-2782.1.97/bsd/hfs/hfscommon/Misc/
H A DFileExtentMapping.c143 const FCB *fcb,
148 const FCB *fcb,
187 FCB *fcb,
231 FCB * fcb; local
240 fcb = GetFileControlBlock(vcb->extentsRefNum);
264 err = BTSearchRecord(fcb, btIterator, &btRecord, &btRecordSize, btIterator);
267 err = BTIterateRecord(fcb, kBTreePrevRecord, btIterator, &btRecord, &btRecordSize);
304 err = BTSearchRecord(fcb, btIterator, &btRecord, &btRecordSize, btIterator);
307 err = BTIterateRecord(fcb, kBTreePrevRecord, btIterator, &btRecord, &btRecordSize);
494 FCB *fcb, // FC
492 MapFileBlockC( ExtendedVCB *vcb, FCB *fcb, size_t numberOfBytes, off_t offset, daddr64_t *startSector, size_t *availableBytes) argument
728 FCB * fcb; local
887 AddFileExtent(ExtendedVCB *vcb, FCB *fcb, u_int32_t startBlock, u_int32_t blockCount) argument
955 ExtendFileC( ExtendedVCB *vcb, FCB *fcb, int64_t bytesToAdd, u_int32_t blockHint, u_int32_t flags, int64_t *actualBytesAdded) argument
1394 TruncateFileC( ExtendedVCB *vcb, FCB *fcb, int64_t peof, int deleted, int rsrc, uint32_t fileid, Boolean truncateToExtent) argument
1588 HeadTruncateFile( ExtendedVCB *vcb, FCB *fcb, u_int32_t headblks) argument
1854 SearchExtentFile( ExtendedVCB *vcb, const FCB *fcb, int64_t filePosition, HFSPlusExtentKey *foundExtentKey, HFSPlusExtentRecord foundExtentData, u_int32_t *foundExtentIndex, u_int32_t *extentBTreeHint, u_int32_t *endingFABNPlusOne ) argument
1958 UpdateExtentRecord(ExtendedVCB *vcb, FCB *fcb, int deleted, const HFSPlusExtentKey *extentFileKey, const HFSPlusExtentRecord extentData, u_int32_t extentBTreeHint) argument
2090 GetFCBExtentRecord( const FCB *fcb, HFSPlusExtentRecord extents) argument
2149 NodesAreContiguous( ExtendedVCB *vcb, FCB *fcb, u_int32_t nodeSize) argument
[all...]
H A DBTreeWrapper.c44 FCB *fcb; local
54 fcb = GetFileControlBlock(refNum);
55 btcb = (BTreeControlBlock*) fcb->fcbBTCBPtr;
73 result = BTReplaceRecord( fcb, iterator, &btRecord, dataSize );
/macosx-10.10/hfs-285/fsck_hfs/dfalib/
H A Dhfs_endian.c55 static int hfs_swap_HFSPlusBTInternalNode (BlockDescriptor *src, SFCB *fcb, enum HFSBTSwapDirection direction);
56 static int hfs_swap_HFSBTInternalNode (BlockDescriptor *src, SFCB *fcb, enum HFSBTSwapDirection direction);
191 SFCB *fcb,
196 BTreeControlBlockPtr btcb = fcb->fcbBtree;
201 // WriteError(fcb->fcbVolume->vcbGPtr, E_BadNode, fcb->fcbFileID, src->blockNum);
257 WriteError(fcb->fcbVolume->vcbGPtr, E_NRecs, fcb->fcbFileID, src->blockNum);
276 WriteError(fcb->fcbVolume->vcbGPtr, E_BadNode, fcb
189 hfs_swap_BTNode( BlockDescriptor *src, SFCB *fcb, enum HFSBTSwapDirection direction ) argument
432 hfs_swap_HFSPlusBTInternalNode( BlockDescriptor *src, SFCB *fcb, enum HFSBTSwapDirection direction ) argument
871 hfs_swap_HFSBTInternalNode( BlockDescriptor *src, SFCB *fcb, enum HFSBTSwapDirection direction ) argument
[all...]
H A DSBTree.c42 static void InvalidateBTreeIterator ( SFCB *fcb );
56 OSErr SearchBTreeRecord(SFCB *fcb, const void* key, UInt32 hint, void* foundKey, void* data, UInt16 *dataSize, UInt32 *newHint) argument
65 btcb = (BTreeControlBlock*) fcb->fcbBtree;
92 result = BTSearchRecord( fcb, &searchIterator, kInvalidMRUCacheKey, &btRecord, dataSize, resultIterator );
131 OSErr GetBTreeRecord(SFCB *fcb, SInt16 selectionIndex, void* key, void* data, UInt16 *dataSize, UInt32 *newHint) argument
142 btcb = (BTreeControlBlock*) fcb->fcbBtree;
184 result = BTIterateRecord( fcb, kBTreeNextRecord, iterator, &btRecord, dataSize );
195 result = BTIterateRecord( fcb, kBTreePrevRecord, iterator, &btRecord, dataSize );
201 result = BTIterateRecord( fcb, operation, iterator, &btRecord, dataSize );
223 OSErr InsertBTreeRecord(SFCB *fcb, cons argument
259 DeleteBTreeRecord(SFCB *fcb, const void* key) argument
285 ReplaceBTreeRecord(SFCB *fcb, const void* key, UInt32 hint, void *newData, UInt16 dataSize, UInt32 *newHint) argument
420 InvalidateBTreeIterator(SFCB *fcb) argument
[all...]
H A DSExtents.c140 const SFCB *fcb,
145 SFCB *fcb,
150 const SFCB *fcb,
185 const SFCB *fcb,
423 SFCB *fcb, // FCB of file
446 err = MapFileBlockFromFCB(vcb, fcb, sectorOffset, &firstFABN, &startBlock, &nextFABN);
448 err = SearchExtentFile(vcb, fcb, sectorOffset, &foundKey, foundData, &foundIndex, &hint, &nextFABN);
468 temp = fcb->fcbPhysicalSize >> kSectorShift;
750 SFCB *fcb, // FCB of file to truncate
792 eofBlocks = fcb
421 MapFileBlockC( SVCB *vcb, SFCB *fcb, UInt32 numberOfBytes, UInt64 sectorOffset, UInt64 *startSector, UInt32 *availableBytes) argument
748 ExtendFileC( SVCB *vcb, SFCB *fcb, UInt32 sectorsToAdd, UInt32 flags, UInt32 *actualSectorsAdded) argument
1337 SearchExtentFile( const SVCB *vcb, const SFCB *fcb, UInt64 sectorOffset, HFSPlusExtentKey *foundExtentKey, HFSPlusExtentRecord foundExtentData, UInt32 *foundExtentIndex, UInt32 *extentBTreeHint, UInt32 *endingFABNPlusOne ) argument
1434 UpdateExtentRecord( const SVCB *vcb, SFCB *fcb, const HFSPlusExtentKey *extentFileKey, HFSPlusExtentRecord extentData, UInt32 extentBTreeHint) argument
1542 GetFCBExtentRecord( const SVCB *vcb, const SFCB *fcb, HFSPlusExtentRecord extents) argument
1556 SetFCBExtentRecord( const SVCB *vcb, SFCB *fcb, HFSPlusExtentRecord extents) argument
1597 MapFileBlockFromFCB( const SVCB *vcb, const SFCB *fcb, UInt64 sectorOffset, UInt32 *firstFABN, UInt32 *firstBlock, UInt32 *nextFABN) argument
1695 ZeroFileBlocks( SVCB *vcb, SFCB *fcb, UInt32 startingSector, UInt32 numberOfSectors ) argument
1790 NodesAreContiguous( SFCB *fcb, UInt32 nodeSize) argument
[all...]
H A DSControl.c1265 SFCB *fcb; local
1268 fcb = GPtr->calculatedExtentsFCB;
1269 fcb->fcbFileID = kHFSExtentsFileID;
1270 fcb->fcbVolume = vcb;
1271 fcb->fcbBtree = GPtr->calculatedExtentsBTCB;
1272 vcb->vcbExtentsFile = fcb;
1275 fcb = GPtr->calculatedCatalogFCB;
1276 fcb->fcbFileID = kHFSCatalogFileID;
1277 fcb->fcbVolume = vcb;
1278 fcb
[all...]
H A Dhfs_endian.h91 int hfs_swap_BTNode (BlockDescriptor *src, SFCB *fcb, enum HFSBTSwapDirection direction);
H A DSUtils.c285 OSErr GetBTreeHeader( SGlobPtr GPtr, SFCB *fcb, BTHeaderRec *header ) argument
293 if (fcb->fcbBlockSize == 0)
294 (void) SetFileBlockSize(fcb, 512);
296 err = GetFileBlock(fcb, kHeaderNodeNum, kGetBlock, &block);
299 err = hfs_swap_BTNode(&block, fcb, kSwapBTNodeHeaderRecordOnly);
302 (void) ReleaseFileBlock(fcb, &block, kReleaseBlock | kTrashBlock);
309 err = hfs_swap_BTNode(&block, fcb, kSwapBTNodeHeaderRecordOnly);
312 (void) ReleaseFileBlock(fcb, &block, kReleaseBlock | kTrashBlock);
316 err = ReleaseFileBlock (fcb, &block, kReleaseBlock);
2171 SFCB *fcb; local
2229 SFCB *fcb; local
[all...]
H A DSCatalog.c44 OSErr LocateCatalogNode(SFCB *fcb, BTreeIterator *iterator, FSBufferDescriptor *btRecord, UInt16 *reclen) argument
53 result = BTSearchRecord(fcb, iterator, kInvalidMRUCacheKey, btRecord, reclen, iterator);
85 result = BTSearchRecord(fcb, iterator, kInvalidMRUCacheKey, btRecord, reclen, iterator);
H A DScavenger.h516 SFCB fcb[1]; /* fcb array*/ member in struct:FCBArray
967 extern OSErr ProcessFileExtents( SGlobPtr GPtr, SFCB *fcb, UInt8 forkType, UInt16 flags, Boolean isExtentsBTree, Boolean *hasOverflowExtents, UInt32 *blocksUsed );
1131 OSErr ZeroFileBlocks( SVCB *vcb, SFCB *fcb, UInt32 startingSector, UInt32 numberOfSectors );
1135 SFCB *fcb, // FCB of file
1145 SFCB *fcb, // FCB of file to truncate
1158 SFCB *fcb,
1171 OSErr GetBTreeHeader( SGlobPtr GPtr, SFCB* fcb, BTHeaderRec *header );
1294 SearchBTreeRecord (SFCB *fcb,
1303 GetBTreeRecord (SFCB *fcb,
[all...]
H A DHardLinkCheck.c553 SFCB *fcb; local
609 fcb = gp->calculatedCatalogFCB;
634 for (result = BTIterateRecord(fcb, kBTreeFirstRecord, &iterator, &btrec, &reclen);
636 result = BTIterateRecord(fcb, kBTreeNextRecord, &iterator, &btrec, &reclen)) {
777 for (result = BTSearchRecord(fcb, &iterator, kInvalidMRUCacheKey, &btrec, &reclen, &iterator);
779 result = BTIterateRecord(fcb, kBTreeNextRecord, &iterator, &btrec, &reclen)) {
894 SFCB * fcb; local
925 fcb = gp->calculatedCatalogFCB;
938 result = BTSearchRecord(fcb, &iterator, kInvalidMRUCacheKey, &btrec,
946 result = BTIterateRecord(fcb, kBTreeNextRecor
[all...]
H A Ddirhardlink.c39 SFCB *fcb; local
46 fcb = GPtr->calculatedCatalogFCB;
47 btcb = (BTreeControlBlock *)fcb->fcbBtree;
57 retval = BTSearchRecord(fcb, &search_iterator, kInvalidMRUCacheKey,
98 retval = BTSearchRecord(fcb, &search_iterator, kInvalidMRUCacheKey,
948 SFCB *fcb; local
960 fcb = gptr->calculatedCatalogFCB;
982 retval = BTSearchRecord(fcb, &iterator, kNoHint, &buf_desc, &recsize,
995 retval = BTSearchRecord(fcb, &iterator, kNoHint, &buf_desc,
1018 retval = BTSearchRecord(fcb,
[all...]
H A DSRepair.c1977 SFCB *fcb; local
1988 fcb = GPtr->calculatedCatalogFCB;
1991 result = SearchBTreeRecord( fcb, &key, kNoHint, &foundKey, &rec, &recSize, &hint );
2012 result = SearchBTreeRecord( fcb, &key, kNoHint, &foundKey, &rec, &recSize, &hint);
2027 result = ReplaceBTreeRecord(fcb, &foundKey, hint, &rec, recSize, &hint);
2042 SFCB *fcb; local
2053 fcb = GPtr->calculatedCatalogFCB;
2056 result = SearchBTreeRecord( fcb, &key, kNoHint, &foundKey, &rec, &recSize, &hint );
2077 result = SearchBTreeRecord( fcb, &key, kNoHint, &foundKey, &rec, &recSize, &hint);
2092 result = ReplaceBTreeRecord(fcb,
2279 SFCB *fcb; local
2404 SFCB *fcb; local
4723 SFCB *fcb = NULL; local
4785 SFCB *fcb = NULL; local
6011 SFCB *fcb = GPtr->calculatedCatalogFCB; local
[all...]
H A DSAllocate.c159 ; fcb - Pointer to FCB for the file for which storage is being allocated
1396 SFCB *fcb,
1403 HFSPlusExtentDescriptor *exts = fcb->fcbExtents32;
1417 vcb = fcb->fcbVolume;
1425 memset(exts, 0, sizeof(fcb->fcbExtents32)); // Zero out the extents.
1427 if (vcb->vcbBlockSize < fcb->fcbBlockSize) {
1428 contigSize = fcb->fcbBlockSize / vcb->vcbBlockSize; // Number of volume blocks in a btree block
1395 BlockFindAll( SFCB *fcb, UInt32 needed) argument
H A DVolumeBitmapCheck.c680 SFCB * fcb; local
687 fcb = g->calculatedAllocationsFCB;
699 bitsWithinFileBlkMask = (fcb->fcbBlockSize * 8) - 1;
717 err = ReleaseFileBlock(fcb, &block, relOpt);
720 err = GetFileBlock(fcb, fileBlk, kGetBlock, &block);
823 (void) ReleaseFileBlock(fcb, &block, relOpt);
H A DSVerify2.c1001 SFCB * fcb; local
1008 fcb = GPtr->calculatedCatalogFCB;
1012 fcb = GPtr->calculatedExtentsFCB;
1016 fcb = GPtr->calculatedAttributesFCB;
1027 err = GetBTreeHeader(GPtr, fcb, &bTreeHeader );
H A DSVerify1.c1602 SFCB * fcb; local
1610 fcb = GPtr->calculatedAllocationsFCB;
1611 CopyMemory( volumeHeader->allocationFile.extents, fcb->fcbExtents32, sizeof(HFSPlusExtentRecord) );
1613 err = CheckFileExtents( GPtr, kHFSAllocationFileID, kDataFork, NULL, (void *)fcb->fcbExtents32, &numABlks);
1621 (void) SetFileBlockSize (fcb, vcb->vcbBlockSize);
1623 (void) SetFileBlockSize (fcb, fscache.BlockSize);
1633 fcb->fcbLogicalSize = volumeHeader->allocationFile.logicalSize;
1634 fcb->fcbPhysicalSize = (UInt64) volumeHeader->allocationFile.totalBlocks *
1639 fcb = GPtr->calculatedStartupFCB;
1640 CopyMemory( volumeHeader->startupFile.extents, fcb
[all...]
H A DCatalogCheck.c124 SFCB *fcb = GPtr->calculatedCatalogFCB; local
144 for (err = BTSearchRecord(fcb, &iterator, kNoHint, &btRecord, &recordSize, &iterator);
146 err = BTIterateRecord(fcb, kBTreeNextRecord, &iterator, &btRecord, &recordSize)) {
H A DBTree.c42 extern Boolean NodesAreContiguous(SFCB *fcb, UInt32 nodeSize);
/macosx-10.10/xnu-2782.1.97/bsd/hfs/hfscommon/headers/
H A DFileMgrInternal.h165 #define GetFileRefNumFromFCB(fcb) FTOV((fcb))
273 TruncateFileC (ExtendedVCB *vcb, FCB *fcb, int64_t peof, int deleted,
278 FCB * fcb,
286 FCB * fcb,
292 OSErr HeadTruncateFile(ExtendedVCB *vcb, FCB *fcb, u_int32_t headblks);
295 AddFileExtent (ExtendedVCB *vcb, FCB *fcb, u_int32_t startBlock, u_int32_t blockCount);
300 FCB * fcb,
/macosx-10.10/xnu-2782.1.97/bsd/hfs/hfscommon/Catalog/
H A DCatalogUtilities.c59 FCB *fcb; local
68 fcb = GetFileControlBlock(volume->catalogRefNum);
78 result = BTSearchRecord( fcb, searchIterator, &btRecord, &tempSize, searchIterator );
143 FCB *fcb; local
154 fcb = GetFileControlBlock(volume->catalogRefNum);
155 btcb = (BTreeControlBlock *)fcb->fcbBTCBPtr;
163 result = BTSearchRecord(fcb, searchIterator, &btRecord, &tempSize, searchIterator);
286 FCB * fcb; local
290 fcb = GetFileControlBlock(volume->catalogRefNum);
291 result = BTFlushPath(fcb);
[all...]
H A DFileIDsServices.c453 FCB * fcb; local
481 fcb = GetFileControlBlock(vcb->extentsRefNum);
541 err = BTSearchRecord(fcb, btIterator, &btRecord, &btRecordSize, btIterator);
566 err = BTIterateRecord(fcb, kBTreeNextRecord, btIterator, &btRecord, &btRecordSize);
622 err = BTInsertRecord(fcb, tmpIterator, &btRecord, btRecordSize);
669 FCB * fcb; local
694 fcb = GetFileControlBlock(vcb->extentsRefNum);
727 err = BTSearchRecord(fcb, btIterator, &btRecord, &btRecordSize, btIterator);
741 err = BTIterateRecord(fcb, kBTreeNextRecord, btIterator, &btRecord, &btRecordSize);
769 err = BTDeleteRecord( fcb, tmpIterato
[all...]
/macosx-10.10/xnu-2782.1.97/bsd/hfs/
H A Dhfs_catalog.c576 FCB *fcb; local
582 fcb = GetFileControlBlock(HFSTOVCB(hfsmp)->catalogRefNum);
591 result = BTSearchRecord(fcb, &iterator[0], &file_data, &datasize, &iterator[0]);
609 result = BTInsertRecord(fcb, &iterator[1], &thread_data, thread_data.itemSize);
613 (void) BTReplaceRecord(fcb, &iterator[0], &file_data, datasize);
614 (void) BTFlushPath(fcb);
617 (void) BTFlushPath(fcb);
1153 FCB * fcb; local
1164 fcb = hfsmp->hfs_catalog_cp->c_datafork;
1199 result = BTInsertRecord(fcb,
1298 FCB * fcb; local
1613 FCB * fcb; local
1709 FCB * fcb; local
2127 FCB *fcb; local
2205 FCB * fcb; local
2237 FCB * fcb; local
2282 FCB * fcb; local
2335 FCB * fcb; local
2446 FCB * fcb; local
2732 FCB * fcb; local
2903 FCB* fcb; local
3520 FCB* fcb; local
[all...]
H A Dhfs_resize.c1172 FCB *fcb; /* Pointer to the current btree being traversed */ member in struct:hfs_reclaim_extent_info
1382 error = BTReplaceRecord(extent_info->fcb, extent_info->iterator,
1484 error = BTSearchRecord(extent_info->fcb, &iterator, &btdata, &reclen, &iterator);
1595 error = BTDeleteRecord(extent_info->fcb, &iterator);
1612 error = BTInsertRecord(extent_info->fcb, &iterator, &btdata, reclen);
1631 BTFlushPath(extent_info->fcb);
1909 error = BTReplaceRecord(extent_info->fcb, extent_info->iterator,
2059 extent_info->fcb = VTOF(hfsmp->hfs_extents_vp);
2205 error = BTSearchRecord(extent_info->fcb, extent_info->iterator,
2227 error = BTIterateRecord(extent_info->fcb, kBTreeNextRecor
2949 FCB *fcb; local
3078 FCB *fcb; local
3379 FCB *fcb; local
[all...]
H A Dhfs_vfsutils.c1689 FCB *fcb; local
1709 fcb = VTOF(hfsmp->hfs_catalog_vp);
1732 (void) BTSearchRecord(fcb, iterator, NULL, NULL, iterator);
1738 result = BTIterateRecord(fcb, kBTreeNextRecord, iterator, &btdata, NULL);
1797 if (BTIterateRecord(fcb, kBTreePrevRecord, iterator,

Completed in 319 milliseconds

12