...

/

Policies: How to Allocate Files and Directories

Policies: How to Allocate Files and Directories

This lesson builds on our discussion from the last lesson and shows how files and directories are allocated on FFS.

With the group structure in place, FFS now has to decide how to place files and directories and associated metadata on disk to improve performance. The basic mantra is simple: keep related stuff together (and its corollary, keep unrelated stuff far apart).

Allocation policy

Thus, to obey the mantra, FFS has to decide what is “related” and place it within the same block group. Conversely, unrelated items should be placed into different block groups. To achieve this end, FFS makes use of a few simple ...

Access this course and 1400+ top-rated courses and projects.