• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /xnu-2782.1.97/bsd/hfs/hfscommon/BTree/

Lines Matching refs:filePtr

176 Input:		filePtr				- pointer to file to open as a B-tree
186 OSStatus BTOpenPath(FCB *filePtr, KeyCompareProcPtr keyCompareProc)
195 if ( filePtr == nil )
203 if ( filePtr->fcbBTCBPtr != nil && keyCompareProc != nil) {
204 btreePtr = (BTreeControlBlockPtr) filePtr->fcbBTCBPtr;
209 if ( filePtr->fcbEOF < kMinNodeSize )
230 btreePtr->fileRefNum = GetFileRefNumFromFCB(filePtr);
231 filePtr->fcbBTCBPtr = (Ptr) btreePtr; // attach btree cb to file
237 if (FTOC(filePtr)->c_fileid >= kHFSFirstUserCatalogNodeID)
239 nodeRec.blockSize = FCBTOVCB(filePtr)->blockSize;
266 err = VerifyHeader (filePtr, header);
272 PanicIf ( (FCBTOVCB(filePtr)->vcbSigWord != 0x4244) && (header->nodeSize == 512), " BTOpenPath: wrong node size for HFS+ volume!"); // 0x4244 = 'BD'
283 if (FTOC(filePtr)->c_fileid >= kHFSFirstUserCatalogNodeID)
284 filePtr->ff_clumpsize = header->clumpSize;
357 if ( FCBTOHFS(filePtr)->jnl && !NodesAreContiguous(FCBTOVCB(filePtr), filePtr, btreePtr->nodeSize) ) {
372 filePtr->fcbBTCBPtr = nil;
385 block and key descriptor associated with the file if filePtr is last
389 Input: filePtr - pointer to file to delete BTree control block for.
396 OSStatus BTClosePath (FCB *filePtr)
401 btreePtr = (BTreeControlBlockPtr) filePtr->fcbBTCBPtr;
415 filePtr->fcbBTCBPtr = nil;
457 OSStatus BTSearchRecord (FCB *filePtr,
475 if (filePtr == nil)
488 btreePtr = (BTreeControlBlockPtr) filePtr->fcbBTCBPtr;
649 OSStatus BTIterateRecord (FCB *filePtr,
678 if (filePtr == nil)
683 btreePtr = (BTreeControlBlockPtr) filePtr->fcbBTCBPtr;
724 printf ("hfs: BTIterateRecord() found invalid btree node on volume %s\n", FCBTOVCB(filePtr)->vcbVN);
725 hfs_mark_inconsistent(FCBTOVCB(filePtr), HFS_INCONSISTENCY_DETECTED);
892 printf ("hfs: BTIterateRecord() found invalid btree node on volume %s\n", FCBTOVCB(filePtr)->vcbVN);
893 hfs_mark_inconsistent(FCBTOVCB(filePtr), HFS_INCONSISTENCY_DETECTED);
957 Input: filePtr - b-tree file
970 BTIterateRecords(FCB *filePtr, BTreeIterationOperation operation, BTreeIterator *iterator,
993 btreePtr = (BTreeControlBlockPtr) filePtr->fcbBTCBPtr;
1032 printf ("hfs: BTIterateRecords() found invalid btree node on volume %s\n", FCBTOVCB(filePtr)->vcbVN);
1033 hfs_mark_inconsistent(FCBTOVCB(filePtr), HFS_INCONSISTENCY_DETECTED);
1261 OSStatus BTInsertRecord (FCB *filePtr,
1280 err = CheckInsertParams (filePtr, iterator, record, recordLen);
1284 btreePtr = (BTreeControlBlockPtr) filePtr->fcbBTCBPtr;
1424 OSStatus BTReplaceRecord (FCB *filePtr,
1445 err = CheckInsertParams (filePtr, iterator, record, recordLen);
1449 btreePtr = (BTreeControlBlockPtr) filePtr->fcbBTCBPtr;
1572 BTUpdateRecord(FCB *filePtr, BTreeIterator *iterator,
1592 btreePtr = (BTreeControlBlockPtr) filePtr->fcbBTCBPtr;
1685 OSStatus BTDeleteRecord (FCB *filePtr,
1702 M_ReturnErrorIf (filePtr == nil, paramErr);
1705 btreePtr = (BTreeControlBlockPtr) filePtr->fcbBTCBPtr;
1758 OSStatus BTGetInformation (FCB *filePtr,
1767 M_ReturnErrorIf (filePtr == nil, paramErr);
1769 btreePtr = (BTreeControlBlockPtr) filePtr->fcbBTCBPtr;
1797 BTIsDirty(FCB *filePtr)
1801 btreePtr = (BTreeControlBlockPtr) filePtr->fcbBTCBPtr;
1819 OSStatus BTFlushPath (FCB *filePtr)
1825 M_ReturnErrorIf (filePtr == nil, paramErr);
1827 btreePtr = (BTreeControlBlockPtr) filePtr->fcbBTCBPtr;
1847 Input: filePtr - the B*Tree file that needs its header updated
1856 BTReloadData(FCB *filePtr)
1867 btreePtr = (BTreeControlBlockPtr) filePtr->fcbBTCBPtr;
1878 if ((err = VerifyHeader (filePtr, header)) == 0) {
1931 Input: filePtr - pointer file control block
1940 OSStatus BTGetLastSync (FCB *filePtr,
1946 M_ReturnErrorIf (filePtr == nil, paramErr);
1948 btreePtr = (BTreeControlBlockPtr) filePtr->fcbBTCBPtr;
1979 OSStatus BTSetLastSync (FCB *filePtr,
1985 M_ReturnErrorIf (filePtr == nil, paramErr);
1987 btreePtr = (BTreeControlBlockPtr) filePtr->fcbBTCBPtr;
2001 OSStatus BTHasContiguousNodes (FCB *filePtr)
2006 M_ReturnErrorIf (filePtr == nil, paramErr);
2008 btreePtr = (BTreeControlBlockPtr) filePtr->fcbBTCBPtr;
2014 return NodesAreContiguous(FCBTOVCB(filePtr), filePtr, btreePtr->nodeSize);
2025 BTGetUserData(FCB *filePtr, void * dataPtr, int dataSize)
2037 btreePtr = (BTreeControlBlockPtr) filePtr->fcbBTCBPtr;
2062 BTSetUserData(FCB *filePtr, void * dataPtr, int dataSize)
2074 btreePtr = (BTreeControlBlockPtr) filePtr->fcbBTCBPtr;