An example of Doxygen documentation for the filesystem lab is available in HTML and PDF format. The settings used to generate the documentation can be found in the Doxygen configuration file.
Archive for the 'filesystem' Category
On the lab page you can find a sample solution to the filesystem lab.
A new version of the handout is available online. It contains a new fstest.c with some bug fixes
A new command file is available to test for the append operation (if a write is issued on an existing file the written content will be appended at the end of the existing data).
You can assume that the parameters passed to the filesystem lab are correct. You are not requested to check for invalid file names (with non-legal characters) or invalid paths (e.g. fs_creat("/non-existing-dir/file-to-be-created.ext"))
Your FAT driver can have the following limitations:
- you can limit yourself to FAT12 images
- your driver should be able to create new files but not necessarily new directories
- you can ignore long file names
- required operations:
- open and close a file
- open a file, read the content, close it
- open a file in a subdirectory, read the content, close it
- create a file, write Hello world! and close it
- create a file in a subdirectory, write Hello world! and close it
- work with more than one open file at the same time
- create a file with more than 2K of content and close it
- append content to an existing file
You can test the listed operations with evaluation.img image file and the corresponding evaluation.img.command command file
The new lab about filesystems (2 weeks) is out:
http://www.lst.inf.ethz.ch/teaching/lectures/ss07/2100/filesystem_lab/index.html