VFS travelling (1)
来源:互联网 发布:怎样建立网络印刷平台 编辑:程序博客网 时间:2024/06/05 03:29
Would like to share some knowledge about VFS on Linux 2.6.37.1.
Before start, let's get to know some terms in LINUX file system world. They are:
1. Super Block: we can think it as Partition;
2. Inode: like a directory structure;
3. Dentry: a file or folder.
And then, i'd like to introduce some key data structures in VFS. They are:
1. file_system_type
Certain fields are listed:
• name: the actual file system name, like "rootfs", "ext3", etc;
• next: points to the next file_system_type node in the list;
• fs_supers: links to the list of super blocks of this file system;
2. super_block
Certain fields are listed:
• s_type: points to its file_system_type;
• s_instances: links to fs_supers list of file_system_type;
• s_root: links to the list of dentrys, which will be introduced soon;
3. dentry
Certain fields are listed:
• d_name: a qstr structure which includes hash code and name string of the dentry. e.g. "/home";
• d_sb: points to the super block of this dentry;
• d_parent: points to the parents of this dentry;
• d_inodes: points to the inode, which will be introduced soon;
• d_mounted: to indicate if there's any block device be mounted to this dentry; this is a very important field which will be introduced more later on;
• d_hash: links to the hash list for quick searching a child under it's parent folder;
4. inode
Certain fields are listed:
• i_sb: points to the super block;
(To be continue)
- VFS travelling (1)
- VFS Travelling (2)
- VFS (1)
- VFS
- VFS
- VFS
- VFS
- VFS
- VFS
- VFS
- VFS
- VFS
- Apache VFS(1):基本介绍
- 学习VFS总结系列1
- 解析 Linux 中的 VFS 文件系统机制(1)
- Travelling Tom
- hdu3001 travelling
- HDU3001 Travelling
- 串口IC卡读写器IC-07开发程序包(简单易用)
- ray地形相交点计算
- 新版Microsoft All-In-One Code Framework发布下载 - 绑定第二版示例代码浏览器
- Asp.net中的ScriptManager
- 哪些程序是用C++写的:
- VFS travelling (1)
- U2270B
- 修改Android开机画面
- VFP关于树控件注册过期的处理方法
- 关于IE对于同一个域名下图片访问限制的研究(客户端访问电子地图)
- Linux下的杀毒软件-NOD32
- Ant 学习笔记(一)
- 查看和设置oracle数据库的最大连接数
- DateTime.Now 和DateTime.UtcNow的区别