Linux Filesystem Hierarchy(block)

本文介绍了文件系统的几个核心组成部分:superblock、inode、datablock、directoryblock 和 indirection block。superblock 存储整个文件系统的信息,如大小等;inode 包含文件的所有信息,但不包括文件名;文件名则存储在 directory block 中,与对应的 inode 编号配对;datablock 用于存储文件的实际数据;当文件的数据块超过 inode 能直接指向的数量时,则会使用 indirection block 来间接指向更多的 datablock。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值