欢迎来到天天文库
浏览记录
ID:1709582
大小:546.50 KB
页数:30页
时间:2017-11-13
《ch11-file-system interface》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Chapter11:File-SystemInterfaceFileConceptAccessMethodsDirectoryStructureFileSystemMountingFileSharingProtectionOperatingSystemConceptsFileConceptContiguouslogicaladdressspaceTypes:DatanumericcharacterbinaryProgramOperatingSystemConceptsFileStructureNone-seq
2、uenceofwords,bytesSimplerecordstructureLinesFixedlengthVariablelengthComplexStructuresFormatteddocumentRelocatableloadfileCansimulatelasttwowithfirstmethodbyinsertingappropriatecontrolcharacters.Whodecides:OperatingsystemProgramOperatingSystemConceptsFileAt
3、tributesName–onlyinformationkeptinhuman-readableform.Type–neededforsystemsthatsupportdifferenttypes.Location–pointertofilelocationondevice.Size–currentfilesize.Protection–controlswhocandoreading,writing,executing.Time,date,anduseridentification–dataforprote
4、ction,security,andusagemonitoring.Informationaboutfilesarekeptinthedirectorystructure,whichismaintainedonthedisk.OperatingSystemConceptsFileOperationsCreateWriteReadRepositionwithinfile–fileseekDeleteTruncateOpen(Fi)–searchthedirectorystructureondiskforentr
5、yFi,andmovethecontentofentrytomemory.Close(Fi)–movethecontentofentryFiinmemorytodirectorystructureondisk.OperatingSystemConceptsFileTypes–Name,ExtensionOperatingSystemConceptsAccessMethodsSequentialAccessreadnextwritenextresetnoreadafterlastwrite(rewrite)Di
6、rectAccessreadnwritenpositiontonreadnextwritenextrewritenn=relativeblocknumberOperatingSystemConceptsSequential-accessFileOperatingSystemConceptsSimulationofSequentialAccessonaDirect-accessFileOperatingSystemConceptsExampleofIndexandRelativeFilesOperatingSy
7、stemConceptsDirectoryStructureAcollectionofnodescontaininginformationaboutallfiles.F1F2F3F4FnDirectoryFilesBoththedirectorystructureandthefilesresideondisk.Backupsofthesetwostructuresarekeptontapes.OperatingSystemConceptsATypicalFile-systemOrganizationOpera
8、tingSystemConceptsInformationinaDeviceDirectoryNameTypeAddressCurrentlengthMaximumlengthDatelastaccessed(forarchival)Datelastupdated(fordump)OwnerID(whopays)Protectioninformation(discusslater)Operating
此文档下载收益归作者所有