git: 9front

Download patch

ref: 68b81c3d6762dcd0215bdb9e5f4fb2bbc03e2060
parent: 746c61ee84b3258005817cc0727f7e9dc8ddd28d
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Jul 1 22:56:21 EDT 2025

gefs: sync last block when compressing

this shouldn't matter in the normal case, but it's
possible that we ended up pointing at the wrong
block in some cases.

--- a/sys/src/cmd/gefs/blk.c
+++ b/sys/src/cmd/gefs/blk.c
@@ -465,6 +465,8 @@
 		PACK64(p+8, r->len);
 		b->logsz += 16;
 	}
+	finalize(b);
+	syncblk(b);
 
 	/*
 	 * now we have a valid freelist, and we can start
--