shithub: gefs

Download patch

ref: d5122d1bcd61d4112f14dbbf3180e732f196ad63
parent: cd0d5bf94d91d31b5b9768551010a4453459fdf9
author: Ori Bernstein <ori@eigenstate.org>
date: Sat May 27 20:55:02 EDT 2023

blk: return block load errors to caller, fix sync ordering

when we sync arenas, we need to sync the headers, then sync
the superblock, and then sync the footers; that means that
we have at least one consistent set of blocks:

If we crash while syncing the headers, the footers are consistent.
If we crash while syncing the main superblock, then the backup
superblock points at the footers, which are consistent.
If we crash while syncing the backup superblock, the main superblock
points at the headers, which are consistent.
If we crash while writing hte footers, the headers and superblocks
are consistent.