Monthly Archives: 六月 2011

分析ext2文件系统磁盘分区结构

最近看了些kernel fs code, 从实际例子,简单分析一下ext2文件系统的结构,  希望对大家有帮助 本文涉及到一些结构,主要是: 超级块 struct ext2_super_block { } 组描述    struct ext2_group_desc { } 索引节点    struct ext2_inode { } 目录结构    struct ext2_dir_entry_2 { } 1. 准备工作 为了分析,特地格式化了一个100MB左右的ext2文件系统,block size 1024 Bytes 可以看一下这个分区的主要信息: debugfs:   stats Filesystem volume name:   <none> Last mounted … Continue reading

Posted in 未分类 | Leave a comment