Searched refs:vcb (Results 1 - 13 of 13) sorted by relevance

/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/hfscommon/Misc/
H A DVolumeAllocation.c113 ExtendedVCB *vcb,
119 ExtendedVCB *vcb,
124 ExtendedVCB *vcb,
133 ExtendedVCB *vcb,
142 ExtendedVCB *vcb,
152 ExtendedVCB *vcb,
176 ; vcb - Pointer to ExtendedVCB for the volume to allocate space on
201 ExtendedVCB *vcb, /* which volume to allocate space on */
222 freeBlocks = hfs_freeblks(VCBTOHFS(vcb), 0);
250 HFS_MOUNT_LOCK(vcb, TRU
200 BlockAllocate( ExtendedVCB *vcb, u_int32_t startingBlock, u_int32_t minBlocks, u_int32_t maxBlocks, Boolean forceContiguous, Boolean useMetaZone, u_int32_t *actualStartBlock, u_int32_t *actualNumBlocks) argument
354 BlockDeallocate( ExtendedVCB *vcb, u_int32_t firstBlock, u_int32_t numBlocks) argument
400 MetaZoneFreeBlocks(ExtendedVCB *vcb) argument
457 NextBitmapBlock( ExtendedVCB *vcb, u_int32_t bit) argument
493 ReadBitmapBlock( ExtendedVCB *vcb, u_int32_t bit, u_int32_t **buffer, u_int32_t *blockRef) argument
551 ReleaseBitmapBlock( ExtendedVCB *vcb, u_int32_t blockRef, Boolean dirty) argument
605 BlockAllocateContig( ExtendedVCB *vcb, u_int32_t startingBlock, u_int32_t minBlocks, u_int32_t maxBlocks, Boolean useMetaZone, u_int32_t *actualStartBlock, u_int32_t *actualNumBlocks) argument
671 BlockAllocateAny( ExtendedVCB *vcb, u_int32_t startingBlock, register u_int32_t endingBlock, u_int32_t maxBlocks, Boolean useMetaZone, u_int32_t *actualStartBlock, u_int32_t *actualNumBlocks) argument
902 BlockAllocateKnown( ExtendedVCB *vcb, u_int32_t maxBlocks, u_int32_t *actualStartBlock, u_int32_t *actualNumBlocks) argument
995 BlockMarkAllocated( ExtendedVCB *vcb, u_int32_t startingBlock, register u_int32_t numBlocks) argument
1164 BlockMarkFree( ExtendedVCB *vcb, u_int32_t startingBlock, register u_int32_t numBlocks) argument
1369 BlockFindContiguous( ExtendedVCB *vcb, u_int32_t startingBlock, u_int32_t endingBlock, u_int32_t minBlocks, u_int32_t maxBlocks, Boolean useMetaZone, u_int32_t *actualStartBlock, u_int32_t *actualNumBlocks) argument
[all...]
H A DFileExtentMapping.c116 const ExtendedVCB *vcb,
126 const ExtendedVCB *vcb,
132 ExtendedVCB *vcb,
143 ExtendedVCB *vcb,
153 ExtendedVCB *vcb,
162 ExtendedVCB *vcb,
168 ExtendedVCB *vcb,
175 ExtendedVCB *vcb,
182 ExtendedVCB *vcb,
202 // vcb Volum
216 FindExtentRecord( const ExtendedVCB *vcb, u_int8_t forkType, u_int32_t fileID, u_int32_t startBlock, Boolean allowPrevious, HFSPlusExtentKey *foundKey, HFSPlusExtentRecord foundData, u_int32_t *foundHint) argument
346 CreateExtentRecord( ExtendedVCB *vcb, HFSPlusExtentKey *key, HFSPlusExtentRecord extents, u_int32_t *hint) argument
414 DeleteExtentRecord( const ExtendedVCB *vcb, u_int8_t forkType, u_int32_t fileID, u_int32_t startBlock) argument
466 MapFileBlockC( ExtendedVCB *vcb, FCB *fcb, size_t numberOfBytes, off_t offset, daddr64_t *startSector, size_t *availableBytes) argument
554 ReleaseExtents( ExtendedVCB *vcb, const HFSPlusExtentRecord extentRecord, u_int32_t *numReleasedAllocationBlocks, Boolean *releasedLastExtent) argument
611 TruncateExtents( ExtendedVCB *vcb, u_int8_t forkType, u_int32_t fileID, u_int32_t startBlock, Boolean * recordDeleted) argument
665 DeallocateFork( ExtendedVCB *vcb, HFSCatalogNodeID fileID, u_int8_t forkType, HFSPlusExtentRecord catalogExtents, Boolean * recordDeleted) argument
853 AddFileExtent(ExtendedVCB *vcb, FCB *fcb, u_int32_t startBlock, u_int32_t blockCount) argument
922 ExtendFileC( ExtendedVCB *vcb, FCB *fcb, int64_t bytesToAdd, u_int32_t blockHint, u_int32_t flags, int64_t *actualBytesAdded) argument
1279 TruncateFileC( ExtendedVCB *vcb, FCB *fcb, int64_t peof, Boolean truncateToExtent) argument
1455 HeadTruncateFile( ExtendedVCB *vcb, FCB *fcb, u_int32_t headblks) argument
1619 SearchExtentRecord( ExtendedVCB *vcb, u_int32_t searchFABN, const HFSPlusExtentRecord extentData, u_int32_t extentDataStartFABN, u_int32_t *foundExtentIndex, u_int32_t *endingFABNPlusOne, Boolean *noMoreExtents) argument
1720 SearchExtentFile( ExtendedVCB *vcb, const FCB *fcb, int64_t filePosition, HFSPlusExtentKey *foundExtentKey, HFSPlusExtentRecord foundExtentData, u_int32_t *foundExtentIndex, u_int32_t *extentBTreeHint, u_int32_t *endingFABNPlusOne ) argument
1823 UpdateExtentRecord( ExtendedVCB *vcb, FCB *fcb, const HFSPlusExtentKey *extentFileKey, const HFSPlusExtentRecord extentData, u_int32_t extentBTreeHint) argument
2005 NodesAreContiguous( ExtendedVCB *vcb, FCB *fcb, u_int32_t nodeSize) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/hfscommon/Catalog/
H A DFileIDsServices.c45 static OSErr DeleteExtents( ExtendedVCB *vcb, u_int32_t fileNumber, Boolean isHFSPlus );
46 static OSErr MoveExtents( ExtendedVCB *vcb, u_int32_t srcFileID, u_int32_t destFileID, Boolean isHFSPlus );
53 OSErr ExchangeFileIDs( ExtendedVCB *vcb, ConstUTF8Param srcName, ConstUTF8Param destName, HFSCatalogNodeID srcID, HFSCatalogNodeID destID, u_int32_t srcHint, u_int32_t destHint ) argument
63 Boolean isHFSPlus = ( vcb->vcbSigWord == kHFSPlusSigWord );
65 err = BuildCatalogKeyUTF8(vcb, srcID, srcName, kUndefinedStrLen, &srcKey, NULL);
68 err = BuildCatalogKeyUTF8(vcb, destID, destName, kUndefinedStrLen, &destKey, NULL);
76 err = LocateCatalogNodeByKey( vcb, srcHint, &srcKey, &srcData, &srcHint );
89 err = LocateCatalogNodeByKey( vcb, destHint, &destKey, &destData, &destHint );
102 err = DeleteExtents( vcb, kHFSBogusExtentFileID, isHFSPlus );
108 err = MoveExtents( vcb, srcDat
376 MoveExtents( ExtendedVCB *vcb, u_int32_t srcFileID, u_int32_t destFileID, Boolean isHFSPlus ) argument
542 DeleteExtents( ExtendedVCB *vcb, u_int32_t fileID, Boolean isHFSPlus ) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/hfscommon/headers/
H A DFileMgrInternal.h234 BlockAllocate (ExtendedVCB * vcb,
244 BlockDeallocate (ExtendedVCB * vcb,
249 BlockMarkAllocated(ExtendedVCB *vcb, u_int32_t startingBlock, u_int32_t numBlocks);
252 BlockMarkFree( ExtendedVCB *vcb, u_int32_t startingBlock, u_int32_t numBlocks);
255 MetaZoneFreeBlocks(ExtendedVCB *vcb); variable
259 FlushExtentFile (ExtendedVCB * vcb); variable
270 TruncateFileC (ExtendedVCB * vcb,
276 ExtendFileC (ExtendedVCB * vcb,
284 MapFileBlockC (ExtendedVCB * vcb,
291 OSErr HeadTruncateFile(ExtendedVCB *vcb, FC
[all...]
H A DCatalogPrivate.h119 extern OSErr ResolveFileID( ExtendedVCB *vcb, HFSCatalogNodeID fileID, HFSCatalogNodeID *parentID, Str31 name );
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/
H A Dhfs_vfsutils.c93 ExtendedVCB *vcb = HFSTOVCB(hfsmp); local
116 vcb->vcbSigWord = SWAP_BE16 (mdb->drSigWord);
117 vcb->vcbCrDate = to_bsd_time(LocalToUTC(SWAP_BE32(mdb->drCrDate)));
118 vcb->localCreateDate = SWAP_BE32 (mdb->drCrDate);
119 vcb->vcbLsMod = to_bsd_time(LocalToUTC(SWAP_BE32(mdb->drLsMod)));
120 vcb->vcbAtrb = SWAP_BE16 (mdb->drAtrb);
121 vcb->vcbNmFls = SWAP_BE16 (mdb->drNmFls);
122 vcb->vcbVBMSt = SWAP_BE16 (mdb->drVBMSt);
123 vcb->nextAllocation = SWAP_BE16 (mdb->drAllocPtr);
124 vcb
287 register ExtendedVCB *vcb; local
1142 GetFileInfo(ExtendedVCB *vcb, __unused u_int32_t dirid, const char *name, struct cat_attr *fattr, struct cat_fork *forkinfo) argument
1190 ExtendedVCB *vcb; local
1943 ExtendedVCB *vcb; local
2161 ExtendedVCB *vcb; local
2301 ExtendedVCB *vcb = HFSTOVCB(hfsmp); local
[all...]
H A Dhfs_btreeio.c330 ExtendedVCB *vcb; local
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
[all...]
H A Dhfs_vfsops.c159 ExtendedVCB *vcb; local
177 vcb = HFSTOVCB(hfsmp);
178 vcb->reserveBlocks = ((u_int64_t)vcb->totalBlocks * HFS_MINFREE) / 100;
179 vcb->reserveBlocks = MIN(vcb->reserveBlocks, HFS_MAXRESERVE / vcb->blockSize);
403 ExtendedVCB *vcb; local
414 vcb = HFSTOVCB(args->hfsmp);
446 strlcpy((char *)vcb
462 ExtendedVCB *vcb; local
667 ExtendedVCB *vcb; local
1832 ExtendedVCB *vcb = VFSTOVCB(mp); local
1885 ExtendedVCB *vcb; local
1976 ExtendedVCB *vcb; local
2293 ExtendedVCB *vcb; local
2898 ExtendedVCB *vcb = HFSTOVCB(hfsmp); local
2999 ExtendedVCB *vcb = HFSTOVCB(hfsmp); local
3277 ExtendedVCB *vcb; local
4848 ExtendedVCB *vcb = VFSTOVCB(mp); local
5024 ExtendedVCB *vcb = VTOVCB(vp); local
[all...]
H A Dhfs_search.c109 static int CheckCriteria( ExtendedVCB *vcb,
117 static int CheckAccess(ExtendedVCB *vcb, u_long searchBits, CatalogKey *key, struct vfs_context *ctx);
177 ExtendedVCB *vcb = VTOVCB(ap->a_vp); local
245 isHFSPlus = (vcb->vcbSigWord == kHFSPlusSigWord);
295 catalogFCB = GetFileControlBlock(vcb->catalogRefNum);
303 (void) hfs_fsync(vcb->catalogRefNum, MNT_WAIT, 0, p);
351 ResolveHardlink(vcb, (HFSPlusCatalogFile *)myCurrentDataPtr);
353 if (CheckCriteria( vcb, ap->a_options, ap->a_searchattrs, myCurrentDataPtr,
355 && CheckAccess(vcb, ap->a_options, myCurrentKeyPtr, ap->a_context)) {
648 CheckCriteria( ExtendedVCB *vcb, argument
[all...]
H A Dhfs.h192 /* vcb stuff */
323 static __inline__ void MarkVCBDirty(ExtendedVCB *vcb) argument
325 vcb->vcbFlags |= 0xFF00;
329 static __inline__ void MarkVCBClean(ExtendedVCB *vcb) argument
331 vcb->vcbFlags &= 0x00FF;
335 static __inline__ Boolean IsVCBDirty(ExtendedVCB *vcb) argument
337 return (vcb->vcbFlags & 0xFF00 ? true : false);
590 int hfs_to_utf8(ExtendedVCB *vcb, const Str31 hfs_str, ByteCount maxDstLen,
593 int utf8_to_hfs(ExtendedVCB *vcb, ByteCount srcLen, const unsigned char* srcStr,
603 int unicode_to_hfs(ExtendedVCB *vcb, ByteCoun
[all...]
H A Dhfs_encodings.c235 hfs_to_utf8(ExtendedVCB *vcb, const Str31 hfs_str, ByteCount maxDstLen, ByteCount *actualDstLen, unsigned char* dstStr) argument
241 hfs_to_unicode_func_t hfs_get_unicode = VCBTOHFS(vcb)->hfs_get_unicode;
296 unicode_to_hfs(ExtendedVCB *vcb, ByteCount srcLen, u_int16_t* srcStr, Str31 dstStr, int retry) argument
299 unicode_to_hfs_func_t hfs_get_hfsname = VCBTOHFS(vcb)->hfs_get_hfsname;
315 utf8_to_hfs(ExtendedVCB *vcb, ByteCount srcLen, const unsigned char* srcStr, Str31 dstStr/*, int retry*/) argument
323 error = unicode_to_hfs(vcb, ucslen, uniStr, dstStr, 1);
H A Dhfs_readwrite.c2686 ExtendedVCB *vcb; local
2717 vcb = VTOVCB(vp);
2720 filebytes = (off_t)fileblocks * (off_t)vcb->blockSize;
2762 (int64_t)(roundup(moreBytesRequested, vcb->blockSize)),
2808 retval = MacToVFSError(ExtendFileC(vcb,
2820 blockHint += actualBytesAdded / vcb->blockSize;
2823 filebytes = (off_t)fp->ff_blocks * (off_t)vcb->blockSize;
2852 roundup(orig_request_size, (off_t)vcb->blockSize);
2864 filebytes = (off_t)fp->ff_blocks * (off_t)vcb->blockSize;
H A Dhfs_catalog.c980 ExtendedVCB * vcb; local
991 vcb = HFSTOVCB(hfsmp);
992 fcb = GetFileControlBlock(vcb->catalogRefNum);
993 std_hfs = (vcb->vcbSigWord == kHFSSigWord);
1233 vcb->vcbFndrInfo[4] = SET_HFS_TEXT_ENCODING(realhint);

Completed in 89 milliseconds