• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/hfs-285/fsck_hfs/dfalib/

Lines Matching defs:searchKey

206 CompareCatalogKeys(HFSCatalogKey *searchKey, HFSCatalogKey *trialKey)
211 searchParentID = searchKey->parentID;
219 result = FastRelString(searchKey->nodeName, trialKey->nodeName);
236 CompareExtendedCatalogKeys(HFSPlusCatalogKey *searchKey, HFSPlusCatalogKey *trialKey)
241 searchParentID = searchKey->parentID;
254 if ( searchKey->nodeName.length == 0 || trialKey->nodeName.length == 0 )
255 result = searchKey->nodeName.length - trialKey->nodeName.length;
257 result = FastUnicodeCompare(&searchKey->nodeName.unicode[0], searchKey->nodeName.length,
277 CaseSensitiveCatalogKeyCompare(HFSPlusCatalogKey *searchKey, HFSPlusCatalogKey *trialKey)
282 searchParentID = searchKey->parentID;
291 UInt16 * str1 = &searchKey->nodeName.unicode[0];
293 int length1 = searchKey->nodeName.length;
332 SInt32 CompareExtentKeys( const HFSExtentKey *searchKey, const HFSExtentKey *trialKey )
337 if (searchKey->keyLength != kHFSExtentKeyMaximumLength)
343 result = -1; // assume searchKey < trialKey
345 if (searchKey->fileID == trialKey->fileID) {
349 if (searchKey->forkType == trialKey->forkType) {
353 if (searchKey->startBlock == trialKey->startBlock) {
363 if (searchKey->startBlock > trialKey->startBlock)
371 if (searchKey->forkType > trialKey->forkType)
379 if (searchKey->fileID > trialKey->fileID)
395 SInt32 CompareExtentKeysPlus( const HFSPlusExtentKey *searchKey, const HFSPlusExtentKey *trialKey )
400 if (searchKey->keyLength != kHFSPlusExtentKeyMaximumLength)
406 result = -1; // assume searchKey < trialKey
408 if (searchKey->fileID == trialKey->fileID) {
412 if (searchKey->forkType == trialKey->forkType) {
416 if (searchKey->startBlock == trialKey->startBlock) {
426 if (searchKey->startBlock > trialKey->startBlock)
434 if (searchKey->forkType > trialKey->forkType)
442 if (searchKey->fileID > trialKey->fileID)
458 CompareAttributeKeys(const AttributeKey *searchKey, const AttributeKey *trialKey)
463 searchFileID = searchKey->cnid;
472 const UInt16 * str1 = searchKey->attrName;
474 int length1 = searchKey->attrNameLen;
507 if (searchKey->startBlock == trialKey->startBlock)
510 return (searchKey->startBlock < trialKey->startBlock ? -1 : 1);