Lines Matching refs:filePtr
331 FCB *filePtr;
336 filePtr = GetFileControlBlock(vp);
338 if ( (off_t)minEOF > filePtr->fcbEOF )
340 bytesToAdd = minEOF - filePtr->fcbEOF;
342 if (bytesToAdd < filePtr->ff_clumpsize)
343 bytesToAdd = filePtr->ff_clumpsize; //XXX why not always be a mutiple of clump size?
364 (void) BTGetInformation(filePtr, 0, &btInfo);
380 origSize = filePtr->fcbEOF;
381 fileblocks = filePtr->ff_blocks;
390 retval = ExtendFileC(vcb, filePtr, bytesToAdd, 0,
408 filePtr->fcbEOF = (u_int64_t)filePtr->ff_blocks * (u_int64_t)vcb->blockSize;
409 bytesToAdd = minEOF - filePtr->fcbEOF;
424 filePtr->fcbEOF = (u_int64_t)filePtr->ff_blocks * (u_int64_t)vcb->blockSize;
430 if (filePtr->fcbEOF >= (off_t)minEOF && retval != 0) {
440 if ((filePtr->fcbEOF < (off_t)minEOF) || ((filePtr->fcbEOF - origSize) % btInfo.nodeSize) != 0) {
442 if (filePtr->fcbEOF < (off_t)minEOF) {
445 if (filePtr->fcbEOF < origSize) {
447 filePtr->fcbEOF, origSize);
450 trim = filePtr->fcbEOF - origSize;
452 trim = ((filePtr->fcbEOF - origSize) % btInfo.nodeSize);
455 ret = TruncateFileC(vcb, filePtr, filePtr->fcbEOF - trim, 0);
456 filePtr->fcbEOF = (u_int64_t)filePtr->ff_blocks * (u_int64_t)vcb->blockSize;
459 if ((filePtr->fcbEOF % btInfo.nodeSize) != 0) {
461 filePtr->fcbEOF, btInfo.nodeSize, filePtr);
467 filePtr->fcbEOF, trim, ret);
482 if ((filePtr->fcbEOF % btInfo.nodeSize) != 0) {
484 filePtr, filePtr->fcbEOF, btInfo.nodeSize, trim);
503 ret = ClearBTNodes(vp, btInfo.nodeSize, origSize, (filePtr->fcbEOF - origSize));