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.
本文深入探讨了文件系统的核心组件——超级块、inode、数据块与间接块的作用及特性,揭示了它们如何协同工作以存储和管理文件数据。
3981

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



