《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 10 Details of Ext2/3 File System

OperatingSystemsCh10, part2Details of Ext2/3 File System
Operating Systems Ch10, part2 Details of Ext2/3 File System 1

Trivia: Extended File System (Ext2/3/4)-Follow index-node allocationPrimaryFS forLinuxdistribution- Ext4 was merged in the Linux 2.6.28 and released in 2008-Backward-compatible- For simplicity, we focus on Ext2/3-FeaturesofExt2/3/4- https://ext4.wiki.kernel.org/index.php/Main Page-http://e2fsprogs.sourceforge.net/ext2.html
Trivia • Extended File System (Ext2/3/4) – Follow index-node allocation – Primary FS for Linux distribution – Ext4 was merged in the Linux 2.6.28 and released in 2008 – Backward-compatible – For simplicity, we focus on Ext2/3 – Features of Ext2/3/4 – https://ext4.wiki.kernel.org/index.php/Main_Page – http://e2fsprogs.sourceforge.net/ext2.html

Details of Ext2/3- LayoutInode and directory structureLink fileBuffer cacheJournalingVFS3
Details of Ext2/3 - Layout - Inode and directory structure - Link file - Buffer cache - Journaling - VFS 3

Details of Ext2/3- LayoutInode and directory structureLink fileBuffer cacheJournalingVFS4
Details of Ext2/3 - Layout - Inode and directory structure - Link file - Buffer cache - Journaling - VFS 4

Index-nodeallocation Ext2/3 file systems follow the index-node allocationFilenameIndexIndexIndexIndexNode#...node#2node#1node#n-11rock.mp32game.exe3ubuntu.isoIt is arranged as an array. Solookingupanindexnodewillbefast.FLREEIndex NodeRootTableDirectoryT11121305
5 Index-node allocation Filename Index Node # rock.mp3 1 game.exe 2 ubuntu.iso 3 Root Directory F R E E Index Node Table 1 11 21 30 It is arranged as an array. So, looking up an index node will be fast. Index node #1 Index node #2 . Index node #n-1 . . . . . . • Ext2/3 file systems follow the index-node allocation

SpecificLayout: The file system is not that simple...- it is divided into groupsGDBlockInodeInodeDataSuperblockBitmapBitmapTableBlocksTGroupUGroupGroupn-1
Specific Layout • The file system is not that simple. – it is divided into groups

SpecificLayout: The file system is not that simple...- it is divided into groups- every group has the same structureGDTGroup0BlockInodeDataInodeSuperblockBitmapBitmapTableBlocksThey areTheyaredifferentthesame.GDTGroup1BlockInodeInodeDataSuperblockBitmapBitmapTableBlocks
Specific Layout G Superblock D T Block Bitmap Inode Bitmap Inode Table Data Blocks Superblock D T G Block Bitmap Inode Bitmap Inode Table Data Blocks They are the same. Group 0 Group 1 They are different. • The file system is not that simple. – it is divided into groups – every group has the same structure

Specific Layout. Why doing so?GDTGroupoBlockInodeInodeDataSuperblockBitmapBitmapTableBlocksThey areTheyaredifferentthesameGDTGroup1BlockInodeInodeDataSuperblockBitmapBitmapTableBlocks
Specific Layout • Why doing so? G Superblock D T Block Bitmap Inode Bitmap Inode Table Data Blocks Superblock D T G Block Bitmap Inode Bitmap Inode Table Data Blocks They are the same. Group 0 Group 1 They are different

Specific Layout. Why doing so?- For reliability...GGroupoBlockInodeDataInodeDSuperblockBitmapBitmapTableBlocksTherearemanycopiesofthesuperblockSo,thisincreasesthereliabilityoftheFsThey arethesameThe superblock in Group O is calledthe primary superblockOthersuperblocksarecalledthebackupsuperblockGGroup1BlockInodeInodeDataDSuperblockBitmapBitmapTableBlocksT
Specific Layout • Why doing so? – For reliability. G Superblock D T Block Bitmap Inode Bitmap Inode Table Data Blocks Superblock D T G Block Bitmap Inode Bitmap Inode Table Data Blocks They are the same. Group 0 Group 1 They are different. The superblock in Group 0 is called the primary superblock. Other superblocks are called the backup superblock. There are many copies of the superblock So, this increases the reliability of the FS

Specific Layout. Why doing so?-Forperformance..GroupoSuperblockE.g.-InodetableinGroup0storesinodesfrom#1to#100-InodetableinGroup1storesinodesfrom#101to#200They are-etc...thesameThegoodaboutthisistokeeptheinodesandthefilecontentsclosetogether!Group1SuperblockBimapBitmaplapleBIOCKS
Specific Layout • Why doing so? –For performance. G Superblock D T Block Bitmap Inode Bitmap Inode Table Data Blocks Superblock D T G Block Bitmap Inode Bitmap Inode Table Data Blocks They are the same. Group 0 Group 1 They are different. E.g., - Inode table in Group 0 stores inodes from #1 to #100; - Inode table in Group 1 stores inodes from #101 to #200; - etc. The good about this is to keep the inodes and the file contents close together!
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 10 Details of FAT32.pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 9 File Systems part2.pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 9 File Systems part1.pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 8 Mass Storage.pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 7 Memory Management part2.pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 7 Memory Management part1.pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 6 Process Scheduling.pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 5 Process Communication & Synchronization -Part 2.pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 5 Process Communication & Synchronization(part1).pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 4 Threads.pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 3 Process Concepts & Operations(part2)from Kernel's Perspective.pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 3 Process Concepts & Operations(part1).pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 2 Operating System Structures.pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 1 Overview of an Operating System.pdf
- 《计算机网络》课程教学资源(PPT课件)第六章 应用层.pptx
- 《计算机网络》课程教学资源(PPT课件)第五章 传输层.pptx
- 《计算机网络》课程教学资源(PPT课件)第四章 网络层.pptx
- 《计算机网络》课程教学资源(PPT课件)第三章 数据链路层.pptx
- 《计算机网络》课程教学资源(PPT课件)第二章 物理层.pptx
- 《计算机网络》课程教学资源(PPT课件)第一章 概述.pptx
- 北京工业大学:信息科学技术学院《C#程序设计基础》课程教学大纲 Fundamentals of Programming Principle and Practice in C#.pdf
- 北京工业大学:计算机学院本科课程教学大纲汇编(2024).pdf
- 揭阳职业技术学院:《计算机应用基础》课程授课教案(讲义,2025).pdf
- 《C语言程序设计》课程教学课件(PPT讲稿)第10章 对文件的输入输出.pptx
- 《C语言程序设计》课程教学课件(PPT讲稿)第01章 程序设计和C语言.pptx
- 《C语言程序设计》课程教学课件(PPT讲稿)第02章 算法——程序的灵魂.pptx
- 《C语言程序设计》课程教学课件(PPT讲稿)第03章 最简单的C程序设计——顺序程序设计.pptx
- 《C语言程序设计》课程教学课件(PPT讲稿)第04章 选择结构程序设计.pptx
- 《C语言程序设计》课程教学课件(PPT讲稿)第05章 循环结构程序设计.pptx
- 《C语言程序设计》课程教学课件(PPT讲稿)第06章 利用数组处理批量数据.pptx
- 《C语言程序设计》课程教学课件(PPT讲稿)第07章 用函数实现模块化程序设计.pptx
- 《C语言程序设计》课程教学课件(PPT讲稿)第08章 善于利用指针.pptx
- 《C语言程序设计》课程教学课件(PPT讲稿)第09章 用户自己建立数据类型.pptx
