Project 4 - File System Implementation

Out: Friday, February 22
Due: Wednesday, March 12th at 10:00. The submission is entirely electronic.

Overview

The starting point for this assignment is a simplified file system, cse451fs, the design of which imposes strict limits on both the number of files that can be stored and the maximum size of any one file. In particular, no matter how big a disk you might have, this file system can hold only about 8,000 distinct files, no file can be larger than 10KB, and file names cannot be longer than 128 characters.  These restrictions result from the choice of on-disk data structures used to find files and the data blocks of a given file, that is, the superblock, inode, and directory entry representations.

Here are the major steps involved in this part of the assignment:

  1. Setup your development environment to build and run the CSE451 file system. Details are provided here.  

  2. Improve each of the three limitations cited above:
    • Allow for more files.
    • Increase the maximum size of files.
    • Allow for longer file names.
    Design how you want to implement these file system modifications on disk: how you will represent your directories on disk, how file data is indexed, etc. There can still be a limit on any of these properties, but your improvement needs to be more than simply altering a program constant. For full credit, you must support a maximum file size of at least 256KB, which can be achieved with a single-indirect strategy as discussed in lecture.

    If you encounter any inexplicable behavior while testing your file system, keep in mind that it might be caused by a limitation of the testing program and not your file system. For example, ls only supports 256 character file names, so if you create a longer name with your file system, ls will not show it properly. In general, a good sanity check is to make sure your tests work on regular file systems (e.g., on the parts of the VMWare machine's file system that is not running your file system, or on forkbomb) before running them on your cse451fs.

  3. Alter the skeleton code to implement your file system. There are two major components to this. One is that the user level program mk451fs must be changed to initialize the raw disk device with a valid, empty file system using your new on-disk data structures. The other is to change the file system source itself.

Details

Hints/Starting Points

  • Large Files:
  • Long File Names:
  • General:
  • Writeup

    Please turn in a file called writeup.txt or writeup.htm that addresses the following:

    1. Describe the design for your file system modifications.  Include enough details so that we can understand your code based on this description. This part might also include a discussion of other approaches you considered but rejected.
    2. What concurrency-related issues does a file system have to deal with? You probably didn't deal with any of it directly when implementing your extentions, but what did you notice when looking at the rest of the code?
    3. What methodology did you follow in order to test your file system (for functionality)?
    4. Does your implementation work? If not, what parts work and what parts don't? How would you fix it if you had more time?
    5. What do you like best about your design?  What do you like least about it?  How would you improve your design?

    Aim to fit this report into about 2 pages. The file you submit should be in some easy-to-read format, e.g., plain (ASCII) text or HTML or pdf. It should contain the names of all the people who worked on the project as well as your group name.

    Your writeup will be turned in electronically.

    Turnin

    You will be turning in 4 files:

    You must compile cse451fs.ko files on forkbomb. Do not use a different machine or compiler for this.

    Use the turnin(1L) program under project name project4. Note: turnin will not work on forkbomb, so you'll need to use attu.

    turnin -c cse451 -v -p project4 rodenm-proj4

    where rodenm-proj4 is the directory containing all my files for the project.