Writing to Disk Sequentially

Let's see how to turn all writes into sequential writes for LFS.

We thus have our first challenge: how do we transform all updates to the file-system state into a series of sequential writes to disk? To understand this better, let’s use a simple example. Imagine we are writing a data block DD to a file. Writing the data block to disk might result in the following on-disk layout, with DD written at disk address A0A0:

Get hands-on with 1200+ tech skills courses.