[an error occurred while processing this directive]
School of Computer Science & Engineering
University of New South Wales
Advanced Operating Systems
COMP9242 2002/S2
Next: The Berkeley Fast File
Up: 09-fs
Previous: The bad old days
Subsections
- First block on disk is Boot block
- read by firmware for booting
- Second block of disc is superblock:
- disk geometry, incl. total number of blocks,
- pointer to block free list.
- Next is inode array, containing pointers to disk blocks.
- Finally data blocks.
- Flat files -- just a string of bytes
- Structure imposed by user and convention
- Directories maintained by OS, just name
inumber
- namei() got expensive...
- Physical volumes could be Mounted into hierarchical namespace
As discs got larger this was extended to:
- Volume table-of-contents (VTOC) at start of disk,
- Several partitions per physical disk.
- Each partition can contain a file system.
- Partitions can be mounted into hierarchical namespace.
- Small block size (512b).
- Easily fixed: Doubling doubled performance.
- No redundancy, hence easy to destroy.
- Loss of superblock is disaster.
- No locality:
- Inodes and data in different parts of disk.
- Block allocation using free list leads to randomisation of file's
blocks.
- Generally no attempt to minimise rotational and seek latencies.
Next: The Berkeley Fast File
Up: 09-fs
Previous: The bad old days
Gernot Heiser
2002-10-11
[an error occurred while processing this directive]