some very important text or definition
code/registers - monospace text in xv6
text important for context, or generally adding some good to know stuff
start of concept / pojem po Slovensky
generally less or equal importance as green text
Chapter 8 - File system
Purpose
- organize and store data
- support sharing of data among users and apps
- persistence → data available after reboot
XV6’s fs
- unix-like → files, dirs, pathnames
- stores data on virtio disk for persistence
Challenges of fs
- needs on-disk data structs to represent the tree of named dirs and files, to record the indentities of blocks that hold each file content and to record which disk areas are free
- must support crash recovery, must work correctly after crash restart
- fs code must coordinate to maintain invariants
- must maintain in-memory cache of popular blocks → accessing disk is slower than memory