shithub: gefs

Download patch

ref: ea50e8ab08f8c76c9bed6169cb2bd6ea2696f44e
parent: 1bfbecd960a9a1b3f932a335025291d15d606455
author: Ori Bernstein <[email protected]>
date: Sun Apr 7 19:47:28 EDT 2024

fs: set snaphd gen to -1

--- a/pack.c
+++ b/pack.c
@@ -487,9 +487,11 @@
 	fi->snap.bp.gen = -1;			p += 0;
 	fi->snapdl.hd.addr = UNPACK64(p);	p += 8;
 	fi->snapdl.hd.hash = UNPACK64(p);	p += 8;
+	fi->snapdl.hd.gen = -1;			p += 0;
 	fi->snapdl.gen = -1;			p += 0;
 	fi->snapdl.tl.addr = UNPACK64(p);	p += 8;
 	fi->snapdl.tl.hash = UNPACK64(p);	p += 8;
+	fi->snapdl.hd.gen = -1;			p += 0;
 	fi->snapdl.gen = -1;			p += 0;
 	fi->flags = UNPACK64(p);		p += 8;
 	fi->nextqid = UNPACK64(p);		p += 8;