Storage

How File System Journaling Works: Ext4, Ordered Mode, and Why fsync Is Not Free

A database that calls fsync after a commit expects the bytes it wrote to survive a power cut. A filesystem that just renamed a temporary fil...

Sarthak Bystander 22 Oct, 2026

How the Linux Block Layer Works: bios, Request Queues, and Why I/O Is Batched

A filesystem that wants to write a dirty page does not issue a single system call that waits for the disk. It builds a bio , submits it, and...

Sarthak Bystander 20 Oct, 2026

How NAND Flash and the FTL Work: Pages, Erase Blocks, and Why a Small Write Rewrites a Block

A database that updates a 4 KiB page does not update a 4 KiB cell on the SSD. The host sends a logical block address. The drive's flash ...

Sarthak Bystander 4 Oct, 2026