git: 9front

Download patch

ref: ca9c1c84277f62c722d39326edbb470678630eec
parent: 42d37588edbeddd80e45a0c26ef6e7f8278216a4
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Jul 18 12:25:46 EDT 2024

gefs: work around 8c bug

8c doesn't like assigning struct literals with vlongs
into array indexes, so work around it for now.

--- a/sys/src/cmd/gefs/fs.c
+++ b/sys/src/cmd/gefs/fs.c
@@ -2508,7 +2508,9 @@
 				ainc(&fs->rdonly);
 			for(i = 0; i < fs->narena; i++){
 				a = &fs->arenas[i];
-				oldhd[i] = Zb;
+				oldhd[i].addr = -1;
+				oldhd[i].hash = -1;
+				oldhd[i].gen = -1;
 				qlock(a);
 				/*
 				 * arbitrary heuristic -- try compressing
--