COMP 3430 Operating Systems
File systems 2
March 16th, 2022
Copyright By PowCoder代写 加微信 powcoder
By the end of today’s lecture, you should be able to:
▶ Describe how a specific file system is implemented.
▶ Evaluate the data structures used by a file system implementation.
▶ Criticize a file system implementation.
The Rocket Book (Public Domain)
File systems
/dev/nvme0n1 on my system.
Think about it : Why might there be so many different kinds of file systems?
▶ The textbook describes “vsfs”.
▶ This is remarkably similar to ext2/3.
▶ Let’s remind ourselves about this file system.
Figures of vsfs (©2008-21, Arpaci-Dusseau)
Evaluating the file system
Let’s look at some guiding questions.
▶ Many file systems.
▶ Different types of systems solve different problems.
▶ Different types of systems solve problems differently.
▶ VSFS/ext2 is an implementation of a file system.
▶ It’s… fine.
ext2 in the kernel
Let’s see if we can find where ext2 is implemented in the Linux kernel.
Tux! (CC0)
Everyone: Looking at the names of folders, which is likely to contain the implementation of ext2?
With your team: Find out where and how the super block is implemented. What kinds of metadata does the ext2 superblock track?
With your team: Find out where an inode is implemented. How are direct/indirect block pointers stored?
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com