Lines Matching refs:err
230 OSErr err;
233 err = noErr;
258 err = BTSearchRecord(fcb, btIterator, &btRecord, &btRecordSize, btIterator);
260 if (err == btNotFound && allowPrevious) {
261 err = BTIterateRecord(fcb, kBTreePrevRecord, btIterator, &btRecord, &btRecordSize);
265 if (err == (OSErr) fsBTStartOfIterationErr) //�� fsBTStartOfIterationErr is type unsigned long
266 err = btNotFound;
268 if (err == noErr) {
271 err = btNotFound;
275 if (err == noErr) {
316 err = BTSearchRecord(fcb, btIterator, &btRecord, &btRecordSize, btIterator);
318 if (err == btNotFound && allowPrevious) {
319 err = BTIterateRecord(fcb, kBTreePrevRecord, btIterator, &btRecord, &btRecordSize);
323 if (err == (OSErr) fsBTStartOfIterationErr) //�� fsBTStartOfIterationErr is type unsigned long
324 err = btNotFound;
326 if (err == noErr) {
329 err = btNotFound;
333 if (err == noErr) {
346 return err;
361 OSErr err;
363 err = noErr;
396 err = HFSPlusToHFSExtents(extents, data);
407 if (err == noErr)
408 err = BTInsertRecord(GetFileControlBlock(vcb->extentsRefNum), btIterator, &btRecord, btRecordSize);
410 if (err == noErr)
418 return err;
429 OSErr err;
431 err = noErr;
459 err = BTDeleteRecord(GetFileControlBlock(vcb->extentsRefNum), btIterator);
464 return err;
485 OSErr err;
503 err = SearchExtentFile(vcb, fcb, offset, &foundKey, foundData, &foundIndex, &hint, &nextFABN);
504 if (err == noErr) {
509 if (err != noErr)
511 return err;
582 OSErr err = noErr;
605 err = BlockDeallocate( vcb, extentRecord[extentIndex].startBlock, numAllocationBlocks , 0);
606 if ( err != noErr )
612 return( err );
638 OSErr err;
656 err = FindExtentRecord(vcb, forkType, fileID, startBlock, false, &key, extents, &hint);
657 if (err != noErr) {
658 if (err == btNotFound)
659 err = noErr;
663 err = ReleaseExtents( vcb, extents, &numberExtentsReleased, &releasedLastExtent );
664 if (err != noErr) break;
666 err = DeleteExtentRecord(vcb, forkType, fileID, startBlock);
667 if (err != noErr) break;
674 return err;
692 OSErr err;
697 err = ReleaseExtents( vcb, catalogExtents, &numReleasedAllocationBlocks, &releasedLastExtent );
699 if (err == noErr && !releasedLastExtent)
700 err = TruncateExtents(vcb, forkType, fileID, numReleasedAllocationBlocks, recordDeleted);
702 return( err );
714 OSErr err;
720 err = BTFlushPath(fcb);
723 if ( err == noErr )
730 // err = FlushVolumeControlBlock( vcb );
734 return( err );
947 OSErr err;
1069 err = dskFulErr;
1077 err = SearchExtentFile(vcb, fcb, peof-1, &foundKey, foundData, &foundIndex, &hint, &nextBlock);
1078 if (err == noErr) {
1085 if (err != fxRangeErr) // Any real error?
1117 err = noErr;
1167 err = dskFulErr;
1170 err = dskFulErr;
1172 err = BlockAllocate(
1183 if (err == dskFulErr) {
1188 err = noErr;
1193 err = noErr;
1196 err = noErr;
1201 if (err == noErr) {
1212 err = UpdateExtentRecord(vcb, fcb, 0, &foundKey, foundData, hint);
1213 if (err != noErr) break;
1225 err = dskFulErr; // Oops. Can't extend extents file past first record.
1250 err = CreateExtentRecord(vcb, &foundKey, foundData, &hint);
1251 if (err == fxOvFlErr) {
1256 err = dskFulErr;
1258 if (err != noErr) break;
1266 err = UpdateExtentRecord(vcb, fcb, 0, &foundKey, foundData, hint);
1267 if (err != noErr) break;
1291 err = dskFulErr;
1295 } while (err == noErr && bytesToAdd);
1318 return err;
1321 err = fileBoundsErr;
1348 OSErr err;
1394 err = fileBoundsErr;
1428 err = DeallocateFork(vcb, fileid, forkType, fcb->fcbExtents, &recordDeleted);
1429 if (err != noErr) goto ErrorExit; // got some error, so return it
1432 if (err == noErr) {
1447 err = SearchExtentFile(vcb, fcb, peof-1, &key, extentRecord, &extentIndex, &hint, &extentNextBlock);
1448 if (err != noErr) goto ErrorExit;
1462 err = BlockDeallocate(vcb, startBlock, numBlocks, 0);
1463 if (err != noErr) goto ErrorExit;
1486 err = BlockDeallocate(vcb, extentRecord[extentIndex].startBlock, numBlocks, 0);
1487 if (err != noErr) goto ErrorExit;
1504 err = UpdateExtentRecord(vcb, fcb, deleted, &key, extentRecord, hint);
1505 if (err != noErr) goto ErrorExit;
1514 err = TruncateExtents(vcb, forkType, fileid, nextBlock, &recordDeleted);
1521 return err;
1702 OSErr err = noErr;
1760 err = fxRangeErr;
1763 return( err );
1804 OSErr err;
1816 err = SearchExtentRecord( vcb, filePositionBlock, foundExtentData, 0,
1819 if( err == noErr ) {
1834 err = fxRangeErr; // There are no more extents, so must be beyond PEOF
1843 err = FindExtentRecord(vcb, FORK_IS_RSRC(fcb) ? kResourceForkType : kDataForkType,
1847 if (err == btNotFound) {
1854 err = GetFCBExtentRecord(fcb, foundExtentData);
1866 if (err == noErr) {
1868 err = SearchExtentRecord(vcb, filePositionBlock, foundExtentData, foundExtentKey->startBlock,
1873 return err;
1903 OSErr err = noErr;
1955 err = BTSearchRecord(btFCB, btIterator, &btRecord, &btRecordSize, btIterator);
1957 if (err == noErr)
1958 err = HFSPlusToHFSExtents(extentData, (HFSExtentDescriptor *)&foundData);
1960 if (err == noErr)
1961 err = BTReplaceRecord(btFCB, btIterator, &btRecord, btRecordSize);
1976 err = BTSearchRecord(btFCB, btIterator, &btRecord, &btRecordSize, btIterator);
1978 if (err == noErr) {
1980 err = BTReplaceRecord(btFCB, btIterator, &btRecord, btRecordSize);
1989 return err;
1999 OSErr err;
2001 err = noErr;
2014 err = fsDSIntErr;
2018 return err;