Linux虚拟文件系统及其支持多种文件系统概述.pptxVIP

  • 0
  • 0
  • 约3.77千字
  • 约 17页
  • 2026-02-11 发布于北京
  • 举报

Linux虚拟文件系统及其支持多种文件系统概述.pptx

VirtualFileSystemTheVirtualFilesystemisakernelsoftwarelayerthathandlesallsystemcallsrelatedtoastandardUnixfilesystem.ItsmainstrengthisprovidingacommoninterfacetoseveralkindsoffilesystemsApplicaioninteractswithVFStoaccessfiles,NOTcareabouttherealfilesystemLinuxcansupportmanyfilesystembytheVFS

TheFileSystemsupportedbyLinuxDisk-BasedFSExt2,Ext3,ReiserFS,Minix,FAT32,…Network-BasedFSNFS,SMB,…SpecialFS/Proc

HowtoSupportDifferentFSUserModeKernelModeVFSApplication:open,read,write,close…FileSystemcall:sys_open,sys_read,Sys_write,sys_close…File-f_op-writeFile-f_op-readExt2minixFAT…..

TheSecondExtentionFS---Ext2

BlockGroupOnepartitionissplittedintothenBlockGroup.TheyhavethesamesizeBlockgroupsreducefilefragmentationBlockGroups=PartitionSize/(8*BlockSize)

SuperBlockStoretheSpecifiedFSManagementInformation:blockSize,NumBlock,NumInodeandetc.(ext2_super_block)superblockduplicatedineachblockgroup.KernelOnlyusethe1st’s.Onlywhenitisinvalid,e2fsckrecoveryitfromothersuperblock

GroupDescriptorEveryBlockhastheowngroupdescriptor,itincludes:BlocknumberofblockbitmapBlocknumberofinodebitmapBlocknumberoffirstinodetableblockNumberoffreeblocksinthegroupNumberoffreeinodesinthegroupNumberofdirectoriesinthegroup

BitmapBlockBitmapIndicatethestatusofeveryblockinthisgroup.0meansfreeand1meansusedInodebitmapIndicatethestatusofeveryinodeintheinodetableofthisgroup.0meansfreeand1meansused

InodeTable Theinodetableconsistsofaseriesofconsecutiveblocks,eachofwhichcontainsapredefinednumberofinodesAllinodeshavethesamesize:128bytes.A1024-bytesblockcontains8Inodes

InodeInformationThesizeofeveryinodeis128Bytes,itcontains:FileLenNumberofdatablocksofthefile(unitin512Bytes)ThePointerarrayofdatablocksFileTypeAccessRight

FileTypeSupportedby

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档