shithub: gefs

Download patch

ref: 73ecfeda6df68dc89a93e17799cad0de3d786497
parent: f8236f161ce449a53c4f4a8dff312b756cbebde8
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Nov 30 19:45:42 EST 2023

fs: shut up warning about daily snap

day snaps are ok to load

--- a/fs.c
+++ b/fs.c
@@ -2304,6 +2304,9 @@
 			h = (h+1)%24;
 			continue;
 		}
+		ns = strlen("@day.");
+		if(nl > ns && strncmp(s.kv.k+1, "@day.", ns) == 0)
+			continue;
 		fprint(2, "unknown autosnap %.*s\n", s.kv.nk-1, s.kv.k+1);
 	}
 	btexit(&s);