superblock, inode, data block, directory block, and indirection block.
The superblock: It contains information about the filesystem as a whole, such as its size (the exact information here depends on the filesystem).
An inode:
It contains all information about a file, except its name.
directory block: The name is stored in the directory,
together with the number of the inode. A directory entry consists of a filename and the number of the inode which represents the file.
data blocks : The inode contains the numbers of several data blocks, which are used to store the data in the file.
indirection block
: There is space only for a few data block numbers in the inode, however, and if more are needed, more space for pointers to the data blocks is allocated dynamically. These dynamically allocated blocks are indirect blocks; the name
indicates that in order to find the data block, one has to find its number in the indirect block first.
本文介绍了文件系统的几个核心组成部分:superblock、inode、datablock、directoryblock 和 indirection block。superblock 存储整个文件系统的信息,如大小等;inode 包含文件的所有信息,但不包括文件名;文件名则存储在 directory block 中,与对应的 inode 编号配对;datablock 用于存储文件的实际数据;当文件的数据块超过 inode 能直接指向的数量时,则会使用 indirection block 来间接指向更多的 datablock。
3960

被折叠的 条评论
为什么被折叠?



