???

???

(CHECK SLIDESHOW)

Representation of File Directory

???

Directed Acyclic Structure

Implementation of File Directory

Besides name, data, and metadata, the filesystem must track:

File Control Block

Where to store this is an important design issue.

File Control Block: Data structure that encapsulates are relevant attributes of a process.

TODO There are three approaches

  1. Fixed-Size Array of ???
  2. Variable-Length Array of ???
  3. Variable-Length Array of ???

Internal Structure

Operations on Files

Open a File

Open File Table: Data structure that tracks all files currently in use.

Open File Operation: Prepares a file for efficient access by TODO

Whenever you update a file, you never update just a block. Everything wr.t. the file in memory has to be erased and re-added.