shithub: front

Download patch

ref: 3f95d092329fea3430c4309312ad137648e25ae9
parent: eb708401e1e69e37171aebec7c4f2737dc2586d7
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
--