COMP3891

File Allocation Strategies

Implementation Considerations

Contiguous Allocation

Pros:

Cons:

Dynamic Allocation: Linked List

Each block contains pointer to next block in chain. Free blocks also linked in a chain.

Pros:

Cons:

Dynamic Allocation: File Allocation Table

Keep a map of entire FS in a separate table.

Table is stored on the disk and is replicated in memory.

Pros:

Cons:

Dynamic Allocation: Inode-based

Keep separate table (inode) for each file.

Free space management: