File System Architecture of Linux - PowerPoint PPT Presentation

1 / 19
About This Presentation
Title:

File System Architecture of Linux

Description:

Every registered file system represents its self in the VFS model. ... The extension of minix filesystem but claims robustness and flexibility. ... – PowerPoint PPT presentation

Number of Views:241
Avg rating:3.0/5.0
Slides: 20
Provided by: Alir156
Category:

less

Transcript and Presenter's Notes

Title: File System Architecture of Linux


1
File System Architecture of Linux
  • By Alireza Fathi

2
VFS
  • What is VFS?!!!

3
(No Transcript)
4
VFS is stable!!!
  • Not many changes during 5-7 passed years.
  • The idea is a common file model
  • Every registered file system represents its self
    in the VFS model.
  • The structure is Object Oriented with
    performance enhancement

5
Object Oriented view of VFS
  • There are 4 main Objects
  • 1- Superblock Object
  • 2- Inode Object
  • 3- File Object
  • 4- Dentry Object

6
Superblock Object
  • The doubled link list structure in Linux
  • Super blocks are stored in a doubled link list
  • Each superblock has a pointer to a structure
    containing superblock operations

7
Fields of the super block object
8
Inode Object
  • A hash table contains in-use and dirty inodes
  • every inode is hashed via its superblock number
    and its inode number
  • Three linked lists exist which contain inodes of
    different type
  • 1- A list of unused inodes ( i_count 0)
  • 2- A list of in use inodes ( i_count gt 0) (
    i_nlink gt 0)
  • 3- For every super block a list of dirty inodes
    (in s_dirty)

9
Fields of the inode object
10
File Object
  • There are two double linked lists for holding the
    file objects
  • 1- Unused files list
  • 2- In use file list

11
Fields of File Object
12
Implementing consistency for Directories
  • Every Directory is a file!
  • Usage of i_version field of inode-object and
    f_version field of file-object in implementing
    consistency!

13
Files associated with a process
14
EXT2 Filesystem
  • The extension of minix filesystem but claims
    robustness and flexibility .
  • Better performance from EXT1.
  • Inode based filesystem.

15
Layout of an EXT2 partition
16
Stored superblock on disk
17
Stored group descriptor on disk
18
Stored inode on disk
19
Directory structure
Write a Comment
User Comments (0)
About PowerShow.com