Linux & OS Internals
ext4 journaling
Explain what ext4's journal protects, why the default data mode journals only metadata, and why an application must call fsync to make its own writes durable.
What you will be able to do
- Explain the difference between journaled metadata and unjournaled data in ext4's default mode.
- Decide when an application needs fsync, and check the data mode of the filesystem it writes to.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Linux & OS Internals
- PID and user namespacesAdvanced · 4 min
Explain how PID and user namespaces change what a process sees, why PID 1 handles signals differently, and how a user ID map ties root inside to an ID outside.
- Filesystem inodesAdvanced · 4 min
Explain what an inode holds, how a name points to it, and why a filesystem can refuse new files while it still has free disk space.
- File descriptorsAdvanced · 4 min
Explain how file descriptors index a process's open files and sockets, how RLIMIT_NOFILE caps them, and why a leak shows as a slow climb to EMFILE.
- epoll readinessAdvanced · 4 min
Explain how epoll registers descriptors once and returns only the ready ones, and how level-triggered and edge-triggered modes differ in what they report to the program.
- Unix signalsAdvanced · 4 min
Explain how signals reach a process, why SIGKILL and SIGSTOP cannot be handled, why standard signals merge, and why a handler should only set a flag.
- systemd unitsAdvanced · 4 min
Explain what a systemd unit describes, where its files are found, and how After, Requires and Wants set the start order and the dependencies between units.