File systems and storage
How operating systems organise data on disks into files and directories.
Edited by Alex C, EduAlx · Sources cited below
Explanation
Inodes store metadata and block pointers (Unix). Journaling (ext4, NTFS) protects against crashes; copy-on-write systems (ZFS, Btrfs, APFS) add snapshots. RAID combines disks for speed or redundancy. SSDs use flash with wear levelling and the TRIM command.
Example
How it works, step by step
- Application calls open/read/write
- OS resolves path to an inode
- Block addresses are found
- Data is cached, read or written
- Journal records changes for recovery
Open the interactive page with diagrams →
People behind it
- Ken Thompson (b. 1943), Computer science, USA: Co-created Unix and the B language, and later Go at Google. Turing Award 1983.
- Dennis Ritchie (1941–2011), Computer science, USA: Created the C language and co-created Unix at Bell Labs. Turing Award 1983.
- David Patterson
References
- D. A. Patterson, G. Gibson, R. H. Katz, Proc. ACM SIGMOD 1988, 109–116.
Textbooks
- Operating System Concepts, Abraham Silberschatz, Peter B. Galvin, Greg Gagne (Wiley, 10th ed. 2018). The 'dinosaur book'.
- Modern Operating Systems, Andrew S. Tanenbaum, Herbert Bos (Pearson, 5th ed. 2022). Classic OS text.
Related topics
Virtualisation and containersConcurrency: deadlock and synchronisationCloud computingOperating systems: processes, scheduling and memoryPipelining and parallel processorsMemory hierarchy and cachesDistributed systems: CAP theorem and consensusAutomata and formal languagesComputer security fundamentals (CIA triad)String algorithms and pattern matching