Lines Matching defs:vcb
330 ExtendedVCB *vcb;
350 vcb = VTOVCB(vp);
362 lockflags = hfs_systemfile_lock(vcb, lockflags, HFS_EXCLUSIVE_LOCK);
372 if (vcb->blockSize >= btInfo.nodeSize) {
382 startAllocation = vcb->nextAllocation;
390 retval = ExtendFileC(vcb, filePtr, bytesToAdd, 0,
408 filePtr->fcbEOF = (u_int64_t)filePtr->ff_blocks * (u_int64_t)vcb->blockSize;
418 ((VCBTOHFS(vcb)->hfs_flags & HFS_METADATA_ZONE) == 0) &&
419 (vcb->nextAllocation > startAllocation) &&
420 ((vcb->nextAllocation + fileblocks) < vcb->allocLimit)) {
421 HFS_UPDATE_NEXT_ALLOCATION(vcb, vcb->nextAllocation + fileblocks);
424 filePtr->fcbEOF = (u_int64_t)filePtr->ff_blocks * (u_int64_t)vcb->blockSize;
455 ret = TruncateFileC(vcb, filePtr, filePtr->fcbEOF - trim, 0);
456 filePtr->fcbEOF = (u_int64_t)filePtr->ff_blocks * (u_int64_t)vcb->blockSize;
476 (void) BTFlushPath(VTOF(vcb->extentsRefNum));
477 (void) hfs_fsync(vcb->extentsRefNum, MNT_WAIT, 0, p);
479 hfs_systemfile_unlock(vcb, lockflags);
495 MarkVCBDirty( vcb );
496 ret = hfs_flushvolumeheader(VCBTOHFS(vcb), MNT_WAIT, HFS_ALTFLUSH);
509 hfs_systemfile_unlock(vcb, lockflags);