欢迎来到天天文库
浏览记录
ID:43515653
大小:1.16 MB
页数:71页
时间:2019-10-09
《lecture_15_file_system Implementation》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、File-systemImplementationZhaoFangOperatingSystems-forthecollagestudentsGoalforTodayFile-SystemStructureFile-SystemImplementationDirectoryImplementationFree-SpaceManagementUnixFileManagementLinuxVirtualFileSystemWindowsFileSystemObjectivesTodescri
2、bethedetailsofimplementinglocalfilesystemsanddirectorystructuresTodescribetheimplementationofremotefilesystemsTodiscussblockallocationandfree-blockalgorithmsandtrade-offsFile-SystemStructureFilestructureLogicalstorageunitCollectionofrelatedinformati
3、onFilesystemresidesonsecondarystorage(disks)Provideduserinterfacetostorage,mappinglogicaltophysicalProvidesefficientandconvenientaccesstodiskbyallowingdatatobestored,locatedretrievedeasilyFile-SystemStructureDiskprovidesin-placerewriteandrandomaccess
4、I/Otransfersperformedinblocksofsectors(usually512bytes)Filecontrolblock–storagestructureconsistingofinformationaboutafileDevicedrivercontrolsthephysicaldeviceFilesystemorganizedintolayersTypicalsoftwareorganizationDeviceDriversLowestlevelCommunicat
5、esdirectlywithperipheraldevicesResponsibleforstartingI/OoperationsonadeviceProcessesthecompletionofanI/OrequestBasicFileSystemPhysicalI/OPrimaryinterfacewiththeenvironmentoutsidethecomputersystemDealswithexchangingblocksofdataConcernedwiththeplacem
6、entofblocksConcernedwithbufferingblocksinmainmemoryBasicI/OSupervisorResponsibleforallfileI/Oinitiationandtermination.Controlstructuresdealwith•DeviceI/O,•Scheduling,•Filestatus.•SelectsandschedulesI/OwiththedeviceLogicalI/OEnablesusersandapplication
7、stoaccessrecordsProvidesgeneral-purposerecordI/OcapabilityMaintainsbasicdataaboutfileElementsofFileManagementFile-SystemImplementationBootcontrolblockcontainsinfoneededbysystemtobootOSfromthatvolumeNeededifvolumecontainsOS,usuallyfirstblockofvolumeV
8、olumecontrolblock(superblock,masterfiletable)containsvolumedetailsTotal#ofblocks,#offreeblocks,blocksize,freeblockpointersorarrayDirectorystructureorganizesthefilesNamesandinodenumbers,masterfiletableFile-SystemImplemen
此文档下载收益归作者所有