Written by: Jerry Cottingham
- Copyright: © 1986, 1990, 1992-2002 by Apple Computer, Inc., all rights reserved.
+ Copyright: � 1986, 1990, 1992-2002 by Apple Computer, Inc., all rights reserved.
*/
#define SHOW_ELAPSED_TIMES 0
-#define DEBUG_REBUILD 1
+#define DEBUG_REBUILD 0
extern void MyIndirectLog(const char *);
SFCB * myFCBPtr, * oldFCBPtr;
UInt32 myBytesUsed = 0;
UInt32 myMapNodeCount;
- UInt64 myNumBlocks;
+ UInt32 myNumBlocks;
FSSize myNewEOF;
BTHeaderRec myHeaderRec;
myErr = BlockFindAll( myBTreeCBPtr->fcbPtr, myNumBlocks);
ReturnIfError( myErr );
myBTreeCBPtr->fcbPtr->fcbPhysicalSize = myNewEOF;
- myErr = ZeroFileBlocks( myVCBPtr, myBTreeCBPtr->fcbPtr, 0, myNewEOF >> kSectorShift );
+ myErr = ZeroFileBlocks( myVCBPtr, myBTreeCBPtr->fcbPtr, 0, (UInt32)(myNewEOF >> kSectorShift) );
ReturnIfError( myErr );
/* now set real values in our BTree Control Block */
else if (FileID == kHFSExtentsFileID)
myFCBPtr->fcbClumpSize = myVCBPtr->vcbExtentsFile->fcbClumpSize;
- myBTreeCBPtr->totalNodes = ( myFCBPtr->fcbPhysicalSize / myBTreeCBPtr->nodeSize );
+ myBTreeCBPtr->totalNodes = (UInt32)( myFCBPtr->fcbPhysicalSize / myBTreeCBPtr->nodeSize );
myBTreeCBPtr->freeNodes = myBTreeCBPtr->totalNodes;
// Initialize our new BTree (write out header node and an empty leaf node)