Lines Matching refs:btIterator
227 BTreeIterator *btIterator;
237 MALLOC(btIterator, BTreeIterator *, sizeof(*btIterator), M_TEMP, M_WAITOK);
238 bzero(btIterator, sizeof(*btIterator));
244 extentKeyPtr = (HFSExtentKey*) &btIterator->key;
254 err = BTSearchRecord(fcb, btIterator, &btRecord, &btRecordSize, btIterator);
257 err = BTIterateRecord(fcb, kBTreePrevRecord, btIterator, &btRecord, &btRecordSize);
301 extentKeyPtr = (HFSPlusExtentKey*) &btIterator->key;
312 err = BTSearchRecord(fcb, btIterator, &btRecord, &btRecordSize, btIterator);
315 err = BTIterateRecord(fcb, kBTreePrevRecord, btIterator, &btRecord, &btRecordSize);
339 *foundHint = btIterator->hint.nodeNum;
340 FREE(btIterator, M_TEMP);
352 BTreeIterator * btIterator;
361 MALLOC(btIterator, BTreeIterator *, sizeof(*btIterator), M_TEMP, M_WAITOK);
362 bzero(btIterator, sizeof(*btIterator));
382 keyPtr = (HFSExtentKey*) &btIterator->key;
396 BlockMoveData(key, &btIterator->key, sizeof(HFSPlusExtentKey));
400 err = BTInsertRecord(GetFileControlBlock(vcb->extentsRefNum), btIterator, &btRecord, btRecordSize);
403 *hint = btIterator->hint.nodeNum;
409 FREE(btIterator, M_TEMP);
420 BTreeIterator * btIterator;
425 MALLOC(btIterator, BTreeIterator *, sizeof(*btIterator), M_TEMP, M_WAITOK);
426 bzero(btIterator, sizeof(*btIterator));
431 keyPtr = (HFSExtentKey*) &btIterator->key;
440 keyPtr = (HFSPlusExtentKey*) &btIterator->key;
448 err = BTDeleteRecord(GetFileControlBlock(vcb->extentsRefNum), btIterator);
451 FREE(btIterator, M_TEMP);
1837 BTreeIterator * btIterator;
1848 MALLOC(btIterator, BTreeIterator *, sizeof(*btIterator), M_TEMP, M_WAITOK);
1849 bzero(btIterator, sizeof(*btIterator));
1864 key = (HFSExtentKey*) &btIterator->key;
1870 btIterator->hint.index = 0;
1871 btIterator->hint.nodeNum = extentBTreeHint;
1877 err = BTSearchRecord(btFCB, btIterator, &btRecord, &btRecordSize, btIterator);
1883 err = BTReplaceRecord(btFCB, btIterator, &btRecord, btRecordSize);
1889 BlockMoveData(extentFileKey, &btIterator->key, sizeof(HFSPlusExtentKey));
1891 btIterator->hint.index = 0;
1892 btIterator->hint.nodeNum = extentBTreeHint;
1898 err = BTSearchRecord(btFCB, btIterator, &btRecord, &btRecordSize, btIterator);
1902 err = BTReplaceRecord(btFCB, btIterator, &btRecord, btRecordSize);
1907 FREE(btIterator, M_TEMP);