To close out the topic of file systems, we'll talk about how they maintain their metadata to ensure that everything remains in a consistent state. This involves journalling and transactions. Transactions may be familiar from a database course or similar -- the idea here is the same.
PS: TAKE BACKUPS.