欢迎来到天天文库
浏览记录
ID:43515657
大小:807.42 KB
页数:68页
时间:2019-10-09
《lecture_14_file_system Interface》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、File-systemInterfaceZhaoFangOperatingSystems-forthecollagestudentsGoalforTodayFileConceptAccessMethodsFileDirectoriesFile-SystemMountingFileSharingProtectionObjectiveforthischapterToexplainthefunctionoffilesystems.Todescribetheinterfacestofilesystems.Todiscussfi
2、le-systemdesigntradeoffs,includingaccessmethods,filesharing,filelocking,anddirectorystructures.Toexplorefile-systemprotection.FilesFilesarethecentralelementtomostapplicationsTheFileSystemisoneofthemostimportantpartoftheOStoauserDesirablepropertiesoffiles:Long-termex
3、istenceSharablebetweenprocessesStructureFileConceptContiguouslogicaladdressspaceTypes:DatanumericcharacterbinaryProgramContentsdefinedbyfile’screatorManytypesConsidertextfile,sourcefile,executablefileFieldsandRecordsFieldsBasicelementofdataContainsasinglev
4、alueCharacterizedbyitslengthanddatatypeRecordsCollectionofrelatedfieldsTreatedasaunitFileandDatabaseFileHavefilenamesIsacollectionofsimilarrecordsTreatedasasingleentityMayimplementaccesscontrolmechanismsDatabaseCollectionofrelateddataRelationshipsexistamongel
5、ementsConsistsofoneormorefilesFileManagementSystemsProvidesservicestousersandapplicationsintheuseoffilesThewayauserorapplicationaccessesfilesProgrammerdoesnotneedtodevelopfilemanagementsoftwareObjectivesforaFileManagementSystemMeetthedatamanagementneedsoftheuserGua
6、ranteethatthedatainthefilearevalidOptimizeperformanceProvideI/OsupportforavarietyofstoragedevicetypesMinimizelostordestroyeddataProvideastandardizedsetofI/OinterfaceroutinestouserprocessesProvideI/Osupportformultipleusers(ifneeded)Requirementsforageneralpurposesyste
7、m1.Eachusershouldbeabletocreate,delete,read,writeandmodifyfiles2.Eachusermayhavecontrolledaccesstootherusers’files3.Eachusermaycontrolwhattypeofaccessesareallowedtotheusers’files4.Eachusershouldbeabletorestructuretheuser’sfilesinaformappropriatetotheproblemRequirementsco
8、nt.5.Eachusershouldbeabletomovedatabetweenfiles6.Eachusershouldbeabletobackupandrecovertheuser’sfilesin
此文档下载收益归作者所有