File metadata and inode

本文介绍了Linux文件系统的概念,包括分区与文件元数据的作用。深入解析了inode(索引节点)的功能及其如何存储文件信息,如权限、所有权等,并探讨了inode与文件数据之间的关系。

摘自《Linux programming by example》(作者:Arnold Robbins)

A partition (physical or logical) that contains file data and metadata, information about files (as opposed to

the file contents, which is information inthe files). Such metadata include file ownership, permissions, size,

and so on, as well as information for use by the operating system in locating file contents.

Inode:

Short for "index node," initially abbreviated "i-node" and now written "inode." A small block of information

describing everything about a file exceptthe file's name(s). The number of inodes, and thus the number of
unique files per filesystem, is set and made permanent when the filesystem is created. 'df -i' can tell you

how many inodes you have and how many are used.


Conceptually, each disk block contains either some number of inodes, or file data. The inode, in turn, contains

pointers to the blocks that contain the file's data.




评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值