Lines Matching refs:mdb
2900 HFSMasterDirectoryBlock *mdb;
2916 mdb = (HFSMasterDirectoryBlock *)(buf_dataptr(bp) + HFS_PRI_OFFSET(sectorsize));
2918 mdb->drCrDate = SWAP_BE32 (UTCToLocal(to_hfs_time(vcb->vcbCrDate)));
2919 mdb->drLsMod = SWAP_BE32 (UTCToLocal(to_hfs_time(vcb->vcbLsMod)));
2920 mdb->drAtrb = SWAP_BE16 (vcb->vcbAtrb);
2921 mdb->drNmFls = SWAP_BE16 (vcb->vcbNmFls);
2922 mdb->drAllocPtr = SWAP_BE16 (vcb->nextAllocation);
2923 mdb->drClpSiz = SWAP_BE32 (vcb->vcbClpSiz);
2924 mdb->drNxtCNID = SWAP_BE32 (vcb->vcbNxtCNID);
2925 mdb->drFreeBks = SWAP_BE16 (vcb->freeBlocks);
2928 retval = utf8_to_hfs(vcb, namelen, vcb->vcbVN, mdb->drVN);
2931 retval = utf8_to_mac_roman(namelen, vcb->vcbVN, mdb->drVN);
2933 mdb->drVolBkUp = SWAP_BE32 (UTCToLocal(to_hfs_time(vcb->vcbVolBkUp)));
2934 mdb->drWrCnt = SWAP_BE32 (vcb->vcbWrCnt);
2935 mdb->drNmRtDirs = SWAP_BE16 (vcb->vcbNmRtDirs);
2936 mdb->drFilCnt = SWAP_BE32 (vcb->vcbFilCnt);
2937 mdb->drDirCnt = SWAP_BE32 (vcb->vcbDirCnt);
2939 bcopy(vcb->vcbFndrInfo, mdb->drFndrInfo, sizeof(mdb->drFndrInfo));
2942 mdb->drXTExtRec[0].startBlock = SWAP_BE16 (fp->ff_extents[0].startBlock);
2943 mdb->drXTExtRec[0].blockCount = SWAP_BE16 (fp->ff_extents[0].blockCount);
2944 mdb->drXTExtRec[1].startBlock = SWAP_BE16 (fp->ff_extents[1].startBlock);
2945 mdb->drXTExtRec[1].blockCount = SWAP_BE16 (fp->ff_extents[1].blockCount);
2946 mdb->drXTExtRec[2].startBlock = SWAP_BE16 (fp->ff_extents[2].startBlock);
2947 mdb->drXTExtRec[2].blockCount = SWAP_BE16 (fp->ff_extents[2].blockCount);
2948 mdb->drXTFlSize = SWAP_BE32 (fp->ff_blocks * vcb->blockSize);
2949 mdb->drXTClpSiz = SWAP_BE32 (fp->ff_clumpsize);
2953 mdb->drCTExtRec[0].startBlock = SWAP_BE16 (fp->ff_extents[0].startBlock);
2954 mdb->drCTExtRec[0].blockCount = SWAP_BE16 (fp->ff_extents[0].blockCount);
2955 mdb->drCTExtRec[1].startBlock = SWAP_BE16 (fp->ff_extents[1].startBlock);
2956 mdb->drCTExtRec[1].blockCount = SWAP_BE16 (fp->ff_extents[1].blockCount);
2957 mdb->drCTExtRec[2].startBlock = SWAP_BE16 (fp->ff_extents[2].startBlock);
2958 mdb->drCTExtRec[2].blockCount = SWAP_BE16 (fp->ff_extents[2].blockCount);
2959 mdb->drCTFlSize = SWAP_BE32 (fp->ff_blocks * vcb->blockSize);
2960 mdb->drCTClpSiz = SWAP_BE32 (fp->ff_clumpsize);
2972 bcopy(mdb, (char *)buf_dataptr(alt_bp) + HFS_ALT_OFFSET(sectorsize), kMDBSize);
3069 HFSMasterDirectoryBlock *mdb;
3079 mdb = (HFSMasterDirectoryBlock *)(buf_dataptr(bp2) +
3082 if ( SWAP_BE32 (mdb->drCrDate) != vcb->localCreateDate )
3088 mdb->drCrDate = SWAP_BE32 (vcb->localCreateDate); /* pick up the new create date */