Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Source files

To help you understand all the code in the filesys/ directory, we’ve selected some key files and described them below:

directory.c

Manages the directory structure. In Pintos, directories are stored as files.

file.c

Performs file reads and writes by doing disk sector reads and writes.

filesys.c

Top-level interface to the file system.

free-map.c

Utilities for modifying the file system’s free block map.

fsutil.c

Simple utilities for the file system that are accessible from the kernel command line.

inode.c

Manages the data structure representing the layout of a file’s data on disk.

lib/kernel/bitmap.c

A bitmap data structure along with routines for reading and writing the bitmap to disk files.

All the basic functionality of a file system is already in the skeleton code, so that the file system is usable from the start, as you’ve seen in Project 1. However, the current file system has some severe limitations which you will remove in this project.