BeeGFS创建文件


FhgfsOps_createIntent
  =>FhgfsInode_entryInfoReadLock
  =>FhgfsInode_initIsizeHints
  =>FhgfsOpsRemoting_lookupIntent
       ==>LookupIntentMsg_initFromEntryInfo
           ===>LookupIntentMsg_init # NETMSGTYPE_LookupIntent
       ==>LookupIntentInfoOut_initFromRespMsg
  =>FhgfsInode_entryInfoReadUnlock

 

### Message: NETMSGTYPE_LookupIntent

LookupIntentMsgEx::executeLocally
  =>LookupIntentMsgEx::create
    ==>MsgHelperMkFile::mkFile
       ===>DirInode::createFileStripePattern
          ====>DirInode::createFileStripePatternUnlocked
             =====>NodeCapacityPools::chooseStorageTargets

                            # CapacityPooll [ NORMAL ]
                            # CapacityPooll [ LOW ]
                            # CapacityPooll [ EMERGENCY ]

     ==>MetaStore::mkNewMetaFile

 

MkFileMsgEx::executeLocally

   =>MkFileMsgEx::executePrimary

      ==>App->getMetaStore->referenceDir

      ==>MsgHelperMkFile::mkFile

           DirInode::createFileStripePattern

                  DirInode::createFileStripePatternUnlocked

                        TargetCapacityPools::chooseStorageTargets

           MetaStore::mkNewMetaFile

                  StorageTk::generateFileID

                  DirEntry->setFileInodeData

                  DirInode::makeDirEntryUnlocked

                        DirEntryStore::makeEntry

                            DirEntryStore::makeEntryUnlocked

                                DirEntry::storeInitialDirEntry

                                     DirEntry::storeInitialDirEntryName

                                        link,  unlink

                                MetaSyncCandidateFile->addModification

      ==>App->getMetaStore->releaseDir  

       

   =>MkFileMsgEx::executeSecondary

      ==>App->getMetaStore->referenceDir

      ==>MsgHelperMkFile::mkFile

      ==>App->getMetaStore->releaseDir 

 

posted @ 2021-05-23 14:44  乌鸦嘴-raven  阅读(264)  评论(0)    收藏  举报