资源描述:
《linux内核—文件系统源代码分析与设计》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Linux内核—文件系统模块的设计和开发郑小辉摘要:目前,Linux技术已经成为IT技术发展的热点,投身于Linux技术研究的社区、研究机构和软件企业越来越多,支持Linux的软件、硬件制造商和解决方案提供商也迅速增加,Linux在信息化建设中的应用范围也越来越广,Linux产业链已初步形成,并正在得到持续的完善。随着整个Linux产业的发展,Linux技术也处在快速的发展过程中,形成了若干技术热点。本文介绍了Linux的发展和特点,以及与其他文件系统的区别。文中主要是对Linux2.4.0内核文件系统源代码的分析,并参考其文件格式设计一个简洁的文件系统。源代码的分析主
2、要介绍了VFS文件系统的结构,Linux自己的Ext2文件系统结构,以及文件系统中的主要函数操作。在设计的简洁文件系统中,通过调用一些系统函数实现了用户的登录、浏览目录、创建目录、更改目录、创建文件以及退出系统功能。关键字:Linux源代码分析文件系统Ext2Linux内核Linuxkernel-DesignanddevelopmentfortheFileSystemModuleZhengxiaohuiAbstract:Currently,LinuxITtechnologyhasbecomeahotdevelopmenttechnology.Participatingi
3、nLinuxtechnologyresearchcommunities,researchinstitutesandsoftwareenterprisesareinsupportofLinuxmoreandmore,softwareandhardwaremanufacturersandsolutionprovidershaveincreasedrapidly,InthedevelopmentoftheinformationindustrytheLinuxapplicationisalsoincreasing,Linuxindustrychainhastakenshape,
4、andissustainedimprovemently.WiththeentireindustryinthedevelopmentofLinux,andLinuxisalsoattherapiddevelopmentprocess,formedanumberoftechnicalpoints.ThispaperpresentsthedevelopmentofLinuxandfeatures,andwithotherfilesystemdifferences.ThemaintextofthedocumentisLinux2.4.0systemkernelsourcecod
5、eanalysis,andIreferenceitsfileformattodesignasimplefilesystem.TheanalysisofthesourcecodemainlyontheVFSfilesystemstructure,LinuxExt2itsownfilesystemstructures,filesystemsandthemainfunctionoperation.Inthedesignofthefilesimplesystem,somesystemfunctionisusedtoachievefunctionsuchas:theuser'sl
6、ogin,browsecatalogs,createdirectories,Changedirectory,createdocumentsandwithdrawfromthesystemfunctionandetc.Keywords:Linux,thesourcecode,filesystem,Ext2,Linuxkernel目录引言1第1章Linux操作系统简介21.1认识Linux操作系统21.2Linux操作系统的发展21.2.1Linux的发展历史21.2.2Linux在国内的发展现状和前景31.3Linux操作系统的优缺点41.3.1Linux的优点41.3.
7、2Linux的缺点51.3.3Linux系统与其他系统的区别51.4Linux文件系统的发展与现状6第2章Linux文件系统92.1Linux文件系统概述92.2虚拟文件系统VFS102.3EXT2文件系统13第3章Linux内核文件系统源代码分析163.1概述163.1.1VFS超级块数据结构163.1.2VFS的索引节点193.1.3VFS的目录项对象223.1.4与进程相关的文件结构243.1.5主要数据结构之间的关系283.2获得文件的索引节点和目录项293.3访问权限与文件安全313.4文件系统的安装和拆卸333.5文件的打开与